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 class="copyright--source">
41 <a href="{{ config.extra.source }}">source code</a>
42 </div>
43 </div>
44{% endblock copyright %}
45
46{% block script %}
47 <script defer data-domain="hauleth.dev" src="/js/script.js"></script>
48{% endblock script %}
49
50{% block css %}
51 <link rel="stylesheet" type="text/css" href="/style.css" />
52 {% if page.content and page.content is containing("data-lang") -%}
53 <link rel="stylesheet" type="text/css" href="/syntax-theme.css" />
54 {% endif %}
55 {% if config.extra.theme_color != "orange" -%}
56 {% set color = "/color/" ~ config.extra.theme_color ~ ".css" -%}
57 <link rel="stylesheet" type="text/css" href="{{ color }}" />
58 {%- else -%}
59 <link rel="stylesheet" type="text/css" href="/color/orange.css" />
60 {% endif %}
61 <meta name="theme-color" content="#1d1e28" />
62{% endblock css %}
63
64{% block header %}
65 <header class="header">
66 <div class="header__inner">
67 <div class="header__logo">
68 {{ logo::logo() }}
69 </div>
70 </div>
71 <nav class="menu">
72 <ul class="menu__inner">
73 {%- for menu_item in config.extra.main_menu -%}
74 <li>
75 <a href="{% if menu_item.url is matching("^https?://") %}{{ menu_item.url }}{% else %}{{ get_url(path=menu_item.url) }}{% endif %}"
76 {% if menu_item.rel %}rel="{{ menu_item.rel }}"{% endif %}>{{ menu_item.name }}</a>
77 </li>
78 {%- endfor-%}
79 </ul>
80 </nav>
81 </header>
82{% endblock header %}
83
84{% block general_meta %}
85 <meta http-equiv="content-type" content="text/html; charset=utf-8">
86 <meta name="viewport" content="width=device-width, initial-scale=1">
87 {%- if page.title -%}
88 <meta name="description" content="{{ config.description }} {{ page.title }} {{ page.description }}"/>
89 {%- else -%}
90 <meta name="description" content="{{ config.description }}"/>
91 {%- endif -%}
92
93 {%- if page.taxonomies.tags or page.taxonomies.categories -%}
94 <meta name="keywords" content="
95 {%- if page.taxonomies.categories -%}
96 {%- for cat in page.taxonomies.categories -%}
97 {{ cat }}, {% endfor -%}
98 {%- endif -%}
99
100 {%- if page.taxonomies.tags -%}
101 {%- for tag in page.taxonomies.tags -%}
102 {%- if loop.last -%}
103 {{ tag }}
104 {%- else -%}
105 {{ tag }}, {% endif -%}
106 {%- endfor -%}
107 {%- endif -%}
108 " />
109 {%- endif -%}
110{% endblock general_meta %}