Files
godot-website/_layouts/default.html
Emi bf79f99062 Add localization plugin and initial es translation (#1011)
* Add plugin and initial `es` translation

* Add missing features to plugin

* Translate home page and sponsors

* Add language selector and widen nav

* Fix mobile style and language selector

* Add js helper file

* Update header.css

* translate footer
2025-02-27 19:33:16 +01:00

55 lines
2.8 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html lang="{% current_lang %}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="author" content="Godot Engine">
<meta name="description" content="{% if page.description %}{{ page.description }}{% elsif page.excerpt %}{{ page.excerpt }}{% else %}{% t meta.description %}{% endif %}">
<!-- Plausible -->
<script defer data-domain="godotengine.org" src="https://plausible.godot.foundation/js/script.file-downloads.outbound-links.js"></script>
<!-- Social meta tags -->
<meta property="og:site_name" content="Godot Engine">
<meta property="og:url" content="https://godotengine.org{{ page.url }}">
<meta property="og:type" content="website">
<meta property="og:description" content="{% if page.description %}{{ page.description }}{% elsif page.excerpt %}{{ page.excerpt }}{% else %}{% t meta.description %}{% endif %}">
<meta property="og:image" content="{{ site.url }}{{ page.image | default: '/assets/share-image.webp' }}">
<!-- meta tags -->
<meta name="twitter:card" content="summary_large_image">
<meta property="twitter:domain" content="godotengine.org">
<meta property="twitter:url" content="https://godotengine.org{{ page.url }}">
{% if page.title[current_lang] or page.title %}
{% if page.title[current_lang] %}
<meta property="og:title" content="{{ page.title[current_lang] | remove: " - Godot Engine" }}{% if page.notitlesuffix != true %} Godot Engine{% endif %}">
<title>{{ page.title[current_lang] | remove: " - Godot Engine" }}{% if page.notitlesuffix != true %} Godot Engine{% endif %}</title>
{% else %}
<meta property="og:title" content="{{ page.title | remove: " - Godot Engine" }}{% if page.notitlesuffix != true %} Godot Engine{% endif %}">
<title>{{ page.title | remove: " - Godot Engine" }}{% if page.notitlesuffix != true %} Godot Engine{% endif %}</title>
{% endif %}
{% else %}
<meta property="og:title" content="Godot Engine">
<title>Godot Engine</title>
{% endif %}
<link rel="alternate" type="application/rss+xml" title="Godot News" href="/rss.xml">
<link rel="alternate" type="application/json" title="Godot News" href="/rss.json" />
<link rel="alternate" type="application/atom+xml" title="Godot News" href="/atom.xml" />
<link rel="icon" href="/assets/favicon.png" sizes="any">
<link rel="icon" href="/assets/favicon.svg" type="image/svg+xml">
<link rel="stylesheet" href="/assets/css/main.css?119">
<link rel="stylesheet" href="/assets/css/header.css">
<link rel="stylesheet" href="/assets/css/tobii.min.css">
<link rel="preload" as="font" href="/assets/fonts/Montserrat-Italic-VariableFont_wght.woff2" crossorigin>
<link rel="preload" as="font" href="/assets/fonts/Montserrat-VariableFont_wght.woff2" crossorigin>
<link rel="me" href="https://mastodon.gamedev.place/@godotengine">
</head>
<body>
{{ content }}
</body>
</html>