summaryrefslogtreecommitdiff
path: root/templates/base.html
blob: cf1edbc0bbc10fcd7a6fccf2585dcbb0eb870a61 (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
27
28
29
30
31
32
33
34
35
36
37
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta content="text/html; charset=UTF-8" http-equiv="content-type" />
  <meta content="width=device-width, initial-scale=1" name="viewport" />

  {% if page.title %}
  {% set title = page.title %}
  {% elif section.title %}
  {% set title = section.title %}
  {% elif config.title %}
  {% set title = config.title %}
  {% endif %}
  {% if title %}<title>{{ title }}</title>{% endif %}

  {% if config.generate_feed %}
  <link rel="alternate" type="application/atom+xml" title="RSS" href="{{ get_url(path="atom.xml", trailing_slash=false)}}">
  {% endif %}

  <link rel="stylesheet" href="{{ get_url(path='site.css', trailing_slash=false) | safe }}" />
  <style>
    code {
      color: var(--note-bg-light);
      padding: .1rem .2rem;
    }
  </style>
</head>

<body theme="auto">
  <main style="max-width: 50rem;padding: 2rem 6rem;">
    {% block content %} {% endblock %}
  </main>
</body>

</html>