summaryrefslogtreecommitdiff
path: root/templates/base.html
blob: 543259ae10dd508d8f78f0191c445ec895e41adf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<!doctype html>
<html lang="ja">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <meta name="color-scheme" content="light dark">
  <meta name="description" content="{% block description %}{{ config.description }}{% endblock description %}">
  <title>{% block title %}{{ config.title }}{% endblock title %}</title>
  <link rel="canonical" href="{{ current_url | default(value=config.base_url) }}">
  <link rel="icon" href="{{ get_url(path='favicon.svg') }}" type="image/svg+xml">
  <link rel="alternate" type="application/atom+xml" title="{{ config.title }} Atom" href="{{ get_url(path='atom.xml', trailing_slash=false) }}">
  <link rel="alternate" type="application/rss+xml" title="{{ config.title }} RSS" href="{{ get_url(path='rss.xml', trailing_slash=false) }}">
  <link id="syntax-light" rel="stylesheet" href="{{ get_url(path='giallo-light.css') }}" media="(prefers-color-scheme: light)">
  <link id="syntax-dark" rel="stylesheet" href="{{ get_url(path='giallo-dark.css') }}" media="(prefers-color-scheme: dark)">
  <link rel="stylesheet" href="{{ get_url(path='main.css') }}">
  <script src="{{ get_url(path='js/theme.js') }}" defer></script>
</head>
<body>
  <a class="skip-link" href="#main-content">本文へ移動</a>
  {% include "partials/header.html" %}
  <main id="main-content" class="site-main" tabindex="-1">
    {% block content %}{% endblock content %}
  </main>
  {% include "partials/footer.html" %}
</body>
</html>