Alle Prüfungen waren erfolgreich
build and deploy / build (push) Successful in 7s
125 Zeilen
5,3 KiB
HTML
125 Zeilen
5,3 KiB
HTML
<head>
|
|
<!-- {{ now() | date(format='%F %a %R') }} -->
|
|
<meta charset="UTF-8" />
|
|
<meta name="description" content="{{ config.description }}" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<meta name="theme-color" content="{{ config.extra.accent_color | default(value='#9a9996') | safe }}" />
|
|
{%- if config.extra.accent_color_dark %}
|
|
<meta name="theme-color" content="{{ config.extra.accent_color_dark | safe }}" media="(prefers-color-scheme:dark)" />
|
|
{%- endif %}
|
|
{%- if config.extra.csp %}
|
|
{%- include "partials/csp.html" %}
|
|
{%- endif %}
|
|
<title>{% include "partials/title.html" %}</title>
|
|
<link rel="canonical" href="{{ current_url | default(value='/') | safe }}" />
|
|
|
|
{%- if config.extra.comments %}
|
|
<link rel="me" href="https://{{ config.extra.comments.host }}/@{{ config.extra.comments.user }}" />
|
|
<meta name="fediverse:creator" content="@{{ config.extra.comments.user }}@{{ config.extra.comments.host }}" />
|
|
{%- endif %}
|
|
|
|
{%- include "partials/favicon.html" %}
|
|
|
|
{%- if config.generate_feeds and config.feed_filenames %}
|
|
{% for feed in config.feed_filenames %}
|
|
{% if feed == "atom.xml" %}
|
|
<link rel="alternate" type="application/atom+xml" title="{{ config.title }} - Atom Feed" href="{{ get_url(path=feed) | safe }}">
|
|
{% elif feed == "rss.xml" %}
|
|
<link rel="alternate" type="application/rss+xml" title="{{ config.title }} - RSS Feed" href="{{ get_url(path=feed) | safe }}">
|
|
{% else %}
|
|
<link rel="alternate" href="{{ get_url(path=feed) | safe }}">
|
|
{% endif %}
|
|
{% endfor %}
|
|
{% endif %}
|
|
|
|
{%- include "partials/variables.html" %}
|
|
|
|
{%- set styles = [ "style.css" ] %}
|
|
|
|
{%- if config.extra.bundled_fonts %}
|
|
{%- set styles = styles | concat(with=["fonts.css"]) %}
|
|
{%- endif %}
|
|
|
|
{%- if page.extra.katex or section.extra.katex or config.extra.katex %}
|
|
{%- set styles = styles | concat(with=["katex.css"]) %}
|
|
{%- endif %}
|
|
|
|
{%- if config.extra.styles %}
|
|
{%- set styles = styles | concat(with=config.extra.styles) %}
|
|
{%- endif %}
|
|
|
|
{%- if page.extra.styles %}
|
|
{%- set styles = styles | concat(with=page.extra.styles) %}
|
|
{%- elif section.extra.styles %}
|
|
{%- set styles = styles | concat(with=section.extra.styles) %}
|
|
{%- endif %}
|
|
|
|
{%- if not config.extra.debug.no_styles %}
|
|
{%- for style in styles %}
|
|
<link type="text/css" rel="stylesheet" href="{{ get_url(path=style) | safe }}" />
|
|
{%- endfor %}
|
|
|
|
{%- if config.markdown.highlight_code and config.markdown.highlight_theme == "css" %}
|
|
{%- if config.markdown.highlight_themes_css | length > 0 %}
|
|
<link type="text/css" rel="stylesheet" href="{{ get_url(path='syntax-theme-light.css') }}" media="(prefers-color-scheme: light)" />
|
|
<link type="text/css" rel="stylesheet" href="{{ get_url(path='syntax-theme-dark.css') }}" media="(prefers-color-scheme: dark)" />
|
|
{%- else %}
|
|
<link type="text/css" rel="stylesheet" href="{{ get_url(path='syntax-theme.css') }}" />
|
|
{%- endif %}
|
|
{%- endif %}
|
|
{%- endif %}
|
|
|
|
{%- set scripts = ["closable.js"] %}
|
|
|
|
{%- if config.extra.show_copy_button %}
|
|
{%- set scripts = scripts | concat(with=["copy-button.js"]) %}
|
|
{%- endif %}
|
|
|
|
{%- if config.extra.goatcounter %}
|
|
{%- set scripts = scripts | concat(with=["count.js"]) %}
|
|
{%- endif %}
|
|
|
|
{%- if page.extra.katex or section.extra.katex or config.extra.katex %}
|
|
{%- set scripts = scripts | concat(with=["katex.min.js", "auto-render.min.js", "katex-init.js"]) %}
|
|
{%- endif %}
|
|
|
|
{%- if config.build_search_index %}
|
|
{%- if config.search.index_format == "elasticlunr_json" -%}
|
|
{%- set scripts = scripts | concat(with=["elasticlunr.min.js", "search-elasticlunr.js"]) %}
|
|
{%- elif config.search.index_format == "fuse_json" -%}
|
|
{%- set scripts = scripts | concat(with=["fuse.js", "search-fuse.js"]) %}
|
|
{%- endif -%}
|
|
{%- endif %}
|
|
|
|
{%- if config.extra.nav.show_theme_switcher %}
|
|
{%- set scripts = scripts | concat(with=["theme-switcher.js"]) %}
|
|
{%- endif %}
|
|
|
|
{%- if page.extra.comments.id %}
|
|
{%- set scripts = scripts | concat(with=["comments.js"]) %}
|
|
{%- endif %}
|
|
|
|
{%- if config.extra.scripts %}
|
|
{%- set scripts = scripts | concat(with=config.extra.scripts) %}
|
|
{%- endif %}
|
|
|
|
{%- if page.extra.scripts %}
|
|
{%- set scripts = scripts | concat(with=page.extra.scripts) %}
|
|
{%- elif section.extra.scripts %}
|
|
{%- set scripts = scripts | concat(with=section.extra.scripts) %}
|
|
{%- endif %}
|
|
|
|
{%- if scripts | length > 0 %}
|
|
{%- for script in scripts %}
|
|
<script type="text/javascript" defer {% if script == "count.js" %}data-goatcounter="https://{{ config.extra.goatcounter.user }}.{{ config.extra.goatcounter.host | default(value='goatcounter.com') }}/count"{% endif %} src="{{ get_url(path=script) | safe }}"></script>
|
|
{%- endfor %}
|
|
{%- endif %}
|
|
|
|
<script async src="https://anly.u42.dev/script.js" data-account-id="77bb6989-947c-49e7-82d5-f47829697762"></script>
|
|
<meta property="og:site_name" content="{{ config.title }}" />
|
|
<meta property="og:title" content="{% include 'partials/title.html' %}" />
|
|
<meta property="og:url" content="{{ current_url | default(value='/') | safe }}" />
|
|
<meta property="og:description" content="{% include 'partials/description.html' %}" />
|
|
<meta property="og:image" content="{% include 'partials/card.html' %}" />
|
|
<meta property="og:locale" content="{{ macros_translate::translate(key='date_locale', default='en_US', language_strings=language_strings) }}" />
|
|
</head>
|