|
| 1 | +<!doctype html> |
| 2 | +<html class="no-js"{% if language is not none %} lang="{{ language }}"{% endif %} data-content_root="{{ content_root }}"> |
| 3 | + <head> |
| 4 | + {%- block site_meta -%} |
| 5 | + <meta charset="utf-8"/> |
| 6 | + <meta name="viewport" content="width=device-width,initial-scale=1"/> |
| 7 | + <meta name="color-scheme" content="light dark"> |
| 8 | + <meta name=" fediverse:creator" content=" @[email protected]" > |
| 9 | + |
| 10 | + {%- if metatags %}{{ metatags }}{% endif -%} |
| 11 | + |
| 12 | + {%- block linktags %} |
| 13 | + {%- if hasdoc('about') -%} |
| 14 | + <link rel="author" title="{{ _('About these documents') }}" href="{{ pathto('about') }}" /> |
| 15 | + {%- endif -%} |
| 16 | + {%- if hasdoc('genindex') -%} |
| 17 | + <link rel="index" title="{{ _('Index') }}" href="{{ pathto('genindex') }}" /> |
| 18 | + {%- endif -%} |
| 19 | + {%- if hasdoc('search') -%} |
| 20 | + <link rel="search" title="{{ _('Search') }}" href="{{ pathto('search') }}" /> |
| 21 | + {%- endif -%} |
| 22 | + {%- if hasdoc('copyright') -%} |
| 23 | + <link rel="copyright" title="{{ _('Copyright') }}" href="{{ pathto('copyright') }}" /> |
| 24 | + {%- endif -%} |
| 25 | + {%- if next -%} |
| 26 | + <link rel="next" title="{{ next.title|striptags|e }}" href="{{ next.link|e }}" /> |
| 27 | + {%- endif -%} |
| 28 | + {%- if prev -%} |
| 29 | + <link rel="prev" title="{{ prev.title|striptags|e }}" href="{{ prev.link|e }}" /> |
| 30 | + {%- endif -%} |
| 31 | + {#- rel="canonical" (set by html_baseurl) -#} |
| 32 | + {%- if pageurl %} |
| 33 | + <link rel="canonical" href="{{ pageurl|e }}" /> |
| 34 | + {%- endif %} |
| 35 | + {%- endblock linktags %} |
| 36 | + |
| 37 | + {# Favicon #} |
| 38 | + {%- if favicon_url -%} |
| 39 | + <link rel="shortcut icon" href="{{ favicon_url }}"/> |
| 40 | + {%- endif -%} |
| 41 | + |
| 42 | + <!-- Generated with Sphinx {{ sphinx_version }} and Furo {{ furo_version }} --> |
| 43 | + |
| 44 | + {%- endblock site_meta -%} |
| 45 | + |
| 46 | + {#- Site title -#} |
| 47 | + {%- block htmltitle -%} |
| 48 | + {% if not docstitle %} |
| 49 | + <title>{{ title|striptags|e }}</title> |
| 50 | + {% elif pagename == master_doc %} |
| 51 | + <title>{{ docstitle|striptags|e }}</title> |
| 52 | + {% else %} |
| 53 | + <title>{{ title|striptags|e }} - {{ docstitle|striptags|e }}</title> |
| 54 | + {% endif %} |
| 55 | + {%- endblock -%} |
| 56 | + |
| 57 | + {%- block styles -%} |
| 58 | + |
| 59 | + {# Custom stylesheets #} |
| 60 | + {%- block regular_styles -%} |
| 61 | + {%- for css in css_files -%} |
| 62 | + {% if css|attr("filename") -%} |
| 63 | + {{ css_tag(css) }} |
| 64 | + {%- else -%} |
| 65 | + <link rel="stylesheet" href="{{ pathto(css, 1)|e }}" type="text/css" /> |
| 66 | + {%- endif %} |
| 67 | + {% endfor -%} |
| 68 | + {%- endblock regular_styles -%} |
| 69 | + |
| 70 | + {#- Theme-related stylesheets -#} |
| 71 | + {%- block theme_styles %} |
| 72 | + {% include "partials/_head_css_variables.html" with context %} |
| 73 | + {%- endblock -%} |
| 74 | + |
| 75 | + {%- block extra_styles %} |
| 76 | + {%- endblock -%} |
| 77 | + |
| 78 | + {%- endblock styles -%} |
| 79 | + |
| 80 | + {#- Custom front matter #} |
| 81 | + {%- block extrahead -%}{%- endblock -%} |
| 82 | + </head> |
| 83 | + <body> |
| 84 | + {% block body %} |
| 85 | + <script> |
| 86 | + document.body.dataset.theme = localStorage.getItem("theme") || "auto"; |
| 87 | + </script> |
| 88 | + {% endblock %} |
| 89 | + |
| 90 | + {%- block scripts -%} |
| 91 | + |
| 92 | + {# Custom JS #} |
| 93 | + {%- block regular_scripts -%} |
| 94 | + {% for path in script_files -%} |
| 95 | + {{ js_tag(path) }} |
| 96 | + {% endfor -%} |
| 97 | + {%- endblock regular_scripts -%} |
| 98 | + |
| 99 | + {# Theme-related JavaScript code #} |
| 100 | + {%- block theme_scripts -%} |
| 101 | + {%- endblock -%} |
| 102 | + |
| 103 | + {%- endblock scripts -%} |
| 104 | + </body> |
| 105 | +</html> |
0 commit comments