| 1 |
{% extends "!page.html" %} |
| 2 |
{%- block extrahead %} |
| 3 |
{{ super() }} |
| 4 |
{%- for href in font_preload_hrefs|default([]) %} |
| 5 |
<link rel="preload" href="{{ pathto('_static/fonts/' + href, 1) }}" as="font" type="font/woff2" crossorigin=""> |
| 6 |
{%- endfor %} |
| 7 |
{%- if font_faces is defined and font_faces %} |
| 8 |
<style id="sphinx-fonts"> |
| 9 |
{%- for face in font_faces %} |
| 10 |
@font-face { |
| 11 |
font-family: "{{ face.family }}"; |
| 12 |
font-style: {{ face.style }}; |
| 13 |
font-weight: {{ face.weight }}; |
| 14 |
font-display: block; |
| 15 |
src: url("{{ pathto('_static/fonts/' + face.filename, 1) }}") format("woff2"); |
| 16 |
{%- if face.unicode_range %} |
| 17 |
unicode-range: {{ face.unicode_range }}; |
| 18 |
{%- endif %} |
| 19 |
} |
| 20 |
{%- endfor %} |
| 21 |
{%- for fb in font_fallbacks|default([]) %} |
| 22 |
@font-face { |
| 23 |
font-family: "{{ fb.family }}"; |
| 24 |
src: {{ fb.src }}; |
| 25 |
size-adjust: {{ fb.size_adjust }}; |
| 26 |
ascent-override: {{ fb.ascent_override }}; |
| 27 |
descent-override: {{ fb.descent_override }}; |
| 28 |
line-gap-override: {{ fb.line_gap_override }}; |
| 29 |
} |
| 30 |
{%- endfor %} |
| 31 |
body { |
| 32 |
{%- for var, value in font_css_variables.items() %} |
| 33 |
{{ var }}: {{ value }}; |
| 34 |
{%- endfor %} |
| 35 |
} |
| 36 |
</style> |
| 37 |
{%- endif %} |
| 38 |
{%- if theme_show_meta_manifest_tag == true %} |
| 39 |
<link rel="manifest" href="/manifest.json"> |
| 40 |
{% endif -%} |
| 41 |
{%- if theme_show_meta_og_tags == true %} |
| 42 |
<meta name="description" content="{{ theme_project_description }}"> |
| 43 |
|
| 44 |
|
| 45 |
<meta property="og:type" content="website"> |
| 46 |
<meta property="og:url" content="{{ theme_project_url }}/"> |
| 47 |
<meta property="og:title" content="{{ theme_project_title }}"> |
| 48 |
<meta property="og:description" content="{{ theme_project_description }}"> |
| 49 |
<meta property="og:image" itemprop="image" content="{{ theme_project_url }}/_static/img/icons/icon-192x192.png"> |
| 50 |
|
| 51 |
|
| 52 |
<meta property="twitter:card" content="summary_large_image"> |
| 53 |
<meta property="twitter:url" content="{{ theme_project_url }} "> |
| 54 |
<meta property="twitter:title" content="{{ theme_project_title }}"> |
| 55 |
<meta property="twitter:description" content="{{ theme_project_description }}"> |
| 56 |
<meta property="twitter:image" content="{{ theme_project_url }}/_static/img/icons/icon-512x512.png"> |
| 57 |
{% endif -%} |
| 58 |
{%- if theme_show_meta_app_icon_tags == true %} |
| 59 |
<meta name="theme-color" content="#ffffff"> |
| 60 |
<meta name="application-name" content="{{ theme_project_name }}"> |
| 61 |
|
| 62 |
<link rel="shortcut icon" href="/_static/favicon.ico"> |
| 63 |
<link rel="icon" type="image/png" sizes="512x512" href="/_static/img/icons/icon-512x512.png"> |
| 64 |
<link rel="icon" type="image/png" sizes="192x192" href="/_static/img/icons/icon-192x192.png"> |
| 65 |
<link rel="icon" type="image/png" sizes="32x32" href="/_static/img/icons/icon-32x32.png"> |
| 66 |
<link rel="icon" type="image/png" sizes="96x96" href="/_static/img/icons/icon-96x96.png"> |
| 67 |
<link rel="icon" type="image/png" sizes="16x16" href="/_static/img/icons/icon-16x16.png"> |
| 68 |
|
| 69 |
|
| 70 |
<meta name="apple-mobile-web-app-title" content="{{ theme_project_title }}"> |
| 71 |
|
| 72 |
<link rel="apple-touch-icon" sizes="192x192" href="/_static/img/icons/icon-192x192.png"> |
| 73 |
<link rel="mask-icon" href="/_static/img/libtmux.svg" color="grey"> |
| 74 |
|
| 75 |
|
| 76 |
<meta name="msapplication-TileColor" content="#ffffff"> |
| 77 |
<meta name="msapplication-TileImage" content="/_static/img/icons/ms-icon-144x144.png"> |
| 78 |
{% endif -%} |
| 79 |
{% endblock %} |