layout.html 973 B

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