diff options
author | Go <monkeywzr@gmail.com> | 2021-06-03 08:41:16 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-03 08:41:16 +0300 |
commit | 41d6a523573a4cc62cfc4301c991f2c2cf71e9e8 (patch) | |
tree | 6459dada51c987dd9270eb9fc32b9afe9b6d8e8d | |
parent | 2f9325922ab385d9cfc8c2ce12804a14645d05e2 (diff) | |
parent | 9d2cf4121b11e38774c55f2cd4ff15be09afcdd7 (diff) |
Merge pull request #51 from lollipopman/add-main-section-title
Allow setting the main section title
-rw-r--r-- | README.md | 7 | ||||
-rw-r--r-- | layouts/index.html | 2 |
2 files changed, 8 insertions, 1 deletions
@@ -89,6 +89,13 @@ weight = 4 mainSection = "posts" ``` +* change the default main section title from Writings, to something else: + +```toml +[params] + mainSectionTitle = "Blog" +``` + * Show only the 5 most recent posts (default) ```toml diff --git a/layouts/index.html b/layouts/index.html index 6559b7e..ee9b339 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -38,7 +38,7 @@ </section> <section id="writing"> - <span class="h1"><a href="{{ .Site.Params.mainSection | absURL }}">Writings</a></span> + <span class="h1"><a href="{{ .Site.Params.mainSection | absURL }}">{{ .Site.Params.mainSectionTitle | default "Writings" }}</a></span> {{ if (and (and (isset .Site.Params "tagsoverview") (eq .Site.Params.tagsOverview true)) (gt (len .Site.Taxonomies.tags) 0)) }} <span class="h2">Topics</span> <span class="widget tagcloud"> |