From 29a219f597a02d6421193ffce6b46180bd900fb1 Mon Sep 17 00:00:00 2001 From: Jannis Fink Date: Wed, 25 Mar 2020 21:33:08 +0100 Subject: make it possible to set another title for the main page --- layouts/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/index.html b/layouts/index.html index bbca958..13eb8ff 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -3,7 +3,7 @@

{{ .Title | markdownify }}

{{ .Content }} -

My Latest Job

+

{{ .Site.Params.latestPublishHeader | default "My Latest Job" }}

{{ $pages := where site.RegularPages "Type" "in" .Site.Params.mainSections }} {{ range first 1 $pages }} {{ if in .Site.Params.mainSections "portfolio" }} -- cgit v1.2.3 From a45ffc3894e9a64965e82dee64451710a3fd0854 Mon Sep 17 00:00:00 2001 From: Jannis Fink Date: Wed, 25 Mar 2020 21:50:22 +0100 Subject: move configuration to sub category 'main' --- layouts/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/index.html b/layouts/index.html index 13eb8ff..cdcc3c6 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -3,7 +3,7 @@

{{ .Title | markdownify }}

{{ .Content }} -

{{ .Site.Params.latestPublishHeader | default "My Latest Job" }}

+

{{ .Site.Params.main.latestPublishHeader | default "My Latest Job" }}

{{ $pages := where site.RegularPages "Type" "in" .Site.Params.mainSections }} {{ range first 1 $pages }} {{ if in .Site.Params.mainSections "portfolio" }} -- cgit v1.2.3 From b687381ce6658da83eabc8abc1c74037caf5cd6f Mon Sep 17 00:00:00 2001 From: Jannis Fink Date: Tue, 5 May 2020 22:40:37 +0200 Subject: add the new param to the exampleSite config --- exampleSite/config.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 915c676..ffbe5ca 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -13,6 +13,9 @@ pygmentsCodeFences=true main = "Hi, I'm Edna :wave:" sub = "I'm a Web Developer and Entrepreneur" +[params.main] + latestPublishHeader = "My Latest Project" + [taxonomies] design = "designs" tech = "techs" -- cgit v1.2.3