this repo has no description
1{% extends "zerm/templates/index.html" %}
2
3{% block fonts %}
4{% endblock fonts %}
5
6{% block rss %}
7 {%- if config.generate_feed -%}
8 <link rel="alternate" type="application/atom+xml" title="{{ config.title }} Feed" href="{{ get_url(path="atom.xml", trailing_slash=false) }}">
9 {%- endif -%}
10{% endblock rss %}
11
12{% block og_preview %}
13 {{ social::og_preview() }}
14
15 {%- if config.extra.twitter.site -%}
16 <meta name="twitter:site" content="{{ config.extra.twitter.site }}" />
17 {%- endif -%}
18 {%- if config.extra.twitter.creator -%}
19 <meta name="twitter:creator" content="{{ config.extra.twitter.creator }}" />
20 {%- endif -%}
21
22 {%- if config.extra.webmention -%}
23 <link rel="webmention" href="{{ config.extra.webmention }}" >
24 {%- endif -%}
25{% endblock og_preview %}
26
27{% block copyright %}
28 <div class="copyright">
29 <div class="copyright--user">{{ config.extra.copyright | safe }}</div>
30 <div class="copyright--tracking">
31 Public tracking available at <a href="https://plausible.io/hauleth.dev">Plausible.io</a>
32 </div>
33 </div>
34{% endblock copyright %}
35
36{% block script %}
37 <script async defer data-domain="hauleth.dev" src="https://plausible.io/js/plausible.js"></script>
38{% endblock script %}
39
40{% block css %}
41 <link rel="stylesheet" type="text/css" href="/style.css" />
42 <link rel="stylesheet" type="text/css" href="/syntax-theme.css" />
43 {% if config.extra.theme_color != "orange" -%}
44 {% set color = "/color/" ~ config.extra.theme_color ~ ".css" -%}
45 <link rel="stylesheet" type="text/css" href="{{ color }}" />
46 {%- else -%}
47 <link rel="stylesheet" type="text/css" href="/color/orange.css" />
48 {% endif %}
49 <meta name="theme-color" content="#1d1e28" />
50{% endblock css %}
51
52{% block header %}
53 <header class="header">
54 <div class="header__inner">
55 <div class="header__logo">
56 {{ logo::logo() }}
57 </div>
58 </div>
59 <nav class="menu">
60 <ul class="menu__inner">
61 {%- for menu_item in config.extra.main_menu -%}
62 <li>
63 <a href="{% if menu_item.url is matching("^https?://") %}{{ menu_item.url }}{% else %}{{ get_url(path=menu_item.url) }}{% endif %}"
64 {% if menu_item.rel %}rel="{{ menu_item.rel }}"{% endif %}>{{ menu_item.name }}</a>
65 </li>
66 {%- endfor-%}
67 </ul>
68 </nav>
69 </header>
70{% endblock header %}
71
72{% block general_meta %}
73 <meta http-equiv="content-type" content="text/html; charset=utf-8">
74 <meta name="viewport" content="width=device-width, initial-scale=1">
75 {%- if page.title -%}
76 <meta name="description" content="{{ config.description }} {{ page.title }} {{ page.description }}"/>
77 {%- else -%}
78 <meta name="description" content="{{ config.description }}"/>
79 {%- endif -%}
80
81 {%- if page.taxonomies.tags or page.taxonomies.categories -%}
82 <meta name="keywords" content="
83 {%- if page.taxonomies.categories -%}
84 {%- for cat in page.taxonomies.categories -%}
85 {{ cat }}, {% endfor -%}
86 {%- endif -%}
87
88 {%- if page.taxonomies.tags -%}
89 {%- for tag in page.taxonomies.tags -%}
90 {%- if loop.last -%}
91 {{ tag }}
92 {%- else -%}
93 {{ tag }}, {% endif -%}
94 {%- endfor -%}
95 {%- endif -%}
96 " />
97 {%- endif -%}
98{% endblock general_meta %}