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 {%- if page.title -%} 75 <meta name="description" content="{{ config.description }} {{ page.title }} {{ page.description }}"/> 76 {%- else -%} 77 <meta name="description" content="{{ config.description }}"/> 78 {%- endif -%} 79 80 {%- if page.taxonomies.tags or page.taxonomies.categories -%} 81 <meta name="keywords" content=" 82 {%- if page.taxonomies.categories -%} 83 {%- for cat in page.taxonomies.categories -%} 84 {{ cat }}, {% endfor -%} 85 {%- endif -%} 86 87 {%- if page.taxonomies.tags -%} 88 {%- for tag in page.taxonomies.tags -%} 89 {%- if loop.last -%} 90 {{ tag }} 91 {%- else -%} 92 {{ tag }}, {% endif -%} 93 {%- endfor -%} 94 {%- endif -%} 95 " /> 96 {%- endif -%} 97{% endblock general_meta %}