feat: localize and translate website into English

This commit is contained in:
Stefan Imhoff
2022-02-23 18:10:17 +01:00
parent 6ab3533040
commit a495838b3f
332 changed files with 12866 additions and 1694 deletions

View File

@@ -1,12 +1,15 @@
{% if locale === "de" %}{% set localizedDescription = site.description['de'] %}{% endif %}
{% if locale === "en" %}{% set localizedDescription = site.description['en'] %}{% endif %}
<!DOCTYPE html>
<html lang="de" class="no-js">
<html lang="{{ locale }}" dir="{{ dir }}" class="no-js">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>
{%- if page.url === "/" -%}
{{ site.title }} · {{ site.description }}
{%- if isHome -%}
{{ site.title }} · {{ localizedDescription }}
{%- else -%}
{{ title }} · {{ site.title }}
{%- endif -%}