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