diff options
author | Baptiste Jacquemet <baptiste.jacquemet@gmail.com> | 2020-06-05 17:33:36 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-05 17:33:36 +0300 |
commit | 567a884118de108d2b05d4f2331924594a675331 (patch) | |
tree | 5e6688b18b22aaaa8743b506d7793c6a5e64273f | |
parent | ca2a98e7c271208b8f35f4a4c5961531716c11ec (diff) | |
parent | b687381ce6658da83eabc8abc1c74037caf5cd6f (diff) |
Merge pull request #11 from jannisfink/master
Make it possible to set another title for the newest job on the main page
-rw-r--r-- | exampleSite/config.toml | 3 | ||||
-rw-r--r-- | layouts/index.html | 2 |
2 files changed, 4 insertions, 1 deletions
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" diff --git a/layouts/index.html b/layouts/index.html index bbca958..cdcc3c6 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -3,7 +3,7 @@ <h1>{{ .Title | markdownify }}</h1> {{ .Content }} -<h2>My Latest Job</h2> +<h2>{{ .Site.Params.main.latestPublishHeader | default "My Latest Job" }}</h2> {{ $pages := where site.RegularPages "Type" "in" .Site.Params.mainSections }} {{ range first 1 $pages }} {{ if in .Site.Params.mainSections "portfolio" }} |