From 415c9e04ce46781b24507dcc0e7ed15e7ac048ae Mon Sep 17 00:00:00 2001 From: Zekromaster Date: Fri, 27 May 2022 00:40:49 +0200 Subject: [PATCH] feat: Headers are not strictly hardcoded anymore --- CHANGESFROMUPSTREAM.adoc | 3 ++- layouts/partials/head.html | 7 +++++++ layouts/partials/home.html | 6 +++--- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/CHANGESFROMUPSTREAM.adoc b/CHANGESFROMUPSTREAM.adoc index de64000..18c846c 100644 --- a/CHANGESFROMUPSTREAM.adoc +++ b/CHANGESFROMUPSTREAM.adoc @@ -1,3 +1,4 @@ = Changes compared to upstream gangjun06/SimpleIntro -* Projects have a new `imageAlt` field that defines the alt-text for the image. \ No newline at end of file +* Projects have a new `imageAlt` field that defines the alt-text for the image. +* Header names can be changed by changing the `headers.aboutMe`, `headers.projects` and `headers.skills` site parameters. \ No newline at end of file diff --git a/layouts/partials/head.html b/layouts/partials/head.html index e69de29..86163d9 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -0,0 +1,7 @@ + + diff --git a/layouts/partials/home.html b/layouts/partials/home.html index 46ac5f1..660ef80 100644 --- a/layouts/partials/home.html +++ b/layouts/partials/home.html @@ -30,7 +30,7 @@
- {{ partial "home_title" (dict "title" "About Me") }} + {{ partial "home_title" (dict "title" (default "About Me" $.Site.Params.headers.aboutMe) ) }}
{{ range $data.about.link }} {{end}} @@ -52,7 +52,7 @@
- {{ partial "home_title" (dict "title" "Skills") }} + {{ partial "home_title" (dict "title" (default "Skills" $.Site.Params.headers.skills)) }}
{{if $data.skills.list}} @@ -87,7 +87,7 @@
- {{ partial "home_title" (dict "title" "Projects") }} + {{ partial "home_title" (dict "title" (default "Projects" $.Site.Params.headers.projects)) }}
{{if $data.skills.list}}