From be603e8e525fbce90ef42914bf96570b2a886a17 Mon Sep 17 00:00:00 2001 From: michivonah Date: Fri, 14 Mar 2025 22:31:05 +0100 Subject: [PATCH] improve i8n/translations --- content/de/_index.md | 5 ++++- content/en/_index.md | 5 ++++- i18n/de.toml | 9 ++++++++- i18n/en.toml | 9 ++++++++- layouts/partials/about.html | 2 +- layouts/partials/header.html | 2 +- layouts/partials/hero.html | 26 +++++++++++++------------- layouts/partials/navbar.html | 12 ++++++------ layouts/partials/scrollTop.html | 2 +- 9 files changed, 46 insertions(+), 26 deletions(-) diff --git a/content/de/_index.md b/content/de/_index.md index e144d39..71a414d 100644 --- a/content/de/_index.md +++ b/content/de/_index.md @@ -1,3 +1,6 @@ --- -title: Home +title: "Michi von Ah" +slogan: "Informatiker, Tech-Enthusiast & Achterbahn-Fan" +firstname: "Michi " +lastname: "von Ah" --- diff --git a/content/en/_index.md b/content/en/_index.md index e144d39..f952de5 100644 --- a/content/en/_index.md +++ b/content/en/_index.md @@ -1,3 +1,6 @@ --- -title: Home +title: "Michi von Ah" +slogan: "IT guy, tech enthusiast & rollercoaster fan" +firstname: "Michi " +lastname: "von Ah" --- diff --git a/i18n/de.toml b/i18n/de.toml index 3bc8a7d..ad51089 100644 --- a/i18n/de.toml +++ b/i18n/de.toml @@ -1,2 +1,9 @@ contact-me = 'Kontaktiere mich' -legal = 'Rechtliches' \ No newline at end of file +legal = 'Rechtliches' +home = 'Home' +about = 'Über mich' +projects = 'Projekte' +blog = 'Blog' +contact = 'Kontakt' +logo = 'Logo' +gotop = 'Nach oben!' \ No newline at end of file diff --git a/i18n/en.toml b/i18n/en.toml index 49867f6..d307370 100644 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -1,2 +1,9 @@ contact-me = 'Contact me' -legal = 'Legal' \ No newline at end of file +legal = 'Legal' +home = 'Home' +about = 'About me' +projects = 'Projects' +blog = 'Blog' +contact = 'Contact' +logo = 'Logo' +gotop = 'Go to top' \ No newline at end of file diff --git a/layouts/partials/about.html b/layouts/partials/about.html index e95ba40..638d54b 100644 --- a/layouts/partials/about.html +++ b/layouts/partials/about.html @@ -2,7 +2,7 @@ {{ with .Site.GetPage "about" }}
{{ with .Params.image }} - + {{ $.Params.title }} {{ end }}
diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 07fe16b..873b19c 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -14,7 +14,7 @@ - + diff --git a/layouts/partials/hero.html b/layouts/partials/hero.html index cdf27f8..c9755c3 100644 --- a/layouts/partials/hero.html +++ b/layouts/partials/hero.html @@ -1,22 +1,22 @@

- M - i - c - h - i - + {{ with .Site.Home.Params.firstname }} + {{ range split . "" }} + {{ . }} + {{ end }} + {{ end }} - v - o - n - - A - h + {{ with .Site.Home.Params.lastname }} + {{ range split . "" }} + {{ . }} + {{ end }} + {{ end }}

-

Informatiker, Tech-Enthusiast & Achterbahn-Fan

+ {{ with .Site.Home.Params.slogan }} +

{{ . }}

+ {{ end }}
\ No newline at end of file diff --git a/layouts/partials/navbar.html b/layouts/partials/navbar.html index a766fb6..b2dbc7c 100644 --- a/layouts/partials/navbar.html +++ b/layouts/partials/navbar.html @@ -1,12 +1,12 @@