layout.html 1019 B

1234567891011121314151617181920
  1. {% extends "!layout.html" -%}
  2. {% block linktags -%}
  3. <meta name="theme-color" content="#3d8fcc">
  4. {% if godot_inject_language_links -%}
  5. {% for alternate_lang in godot_docs_supported_languages -%}
  6. {# Convert to ISO 639-1 format, e.g. zh_CN -> zh-cn -#}
  7. {% set alternate_lang_href = alternate_lang.lower().replace("_", "-") -%}
  8. <link rel="alternate" hreflang="{{ alternate_lang_href }}" href="{{ godot_docs_basepath }}{{ alternate_lang }}/{{ godot_canonical_version }}/{{ pagename }}{{ godot_docs_suffix }}" />
  9. {% endfor -%}
  10. <link rel="alternate" hreflang="x-default" href="{{ godot_docs_basepath }}{{ godot_default_lang }}/{{ godot_canonical_version }}/{{ pagename }}{{ godot_docs_suffix }}" />
  11. <link rel="canonical" href="{{ godot_docs_basepath }}{{ lang_attr }}/{{ godot_canonical_version }}/{{ pagename }}{{ godot_docs_suffix }}" />
  12. {% endif -%}
  13. {{ super() }}
  14. {% endblock -%}
  15. {% block htmltitle -%}
  16. <title>{{ godot_title_prefix }}{{ title|striptags|e }}{{ titlesuffix }}</title>
  17. {% endblock -%}