Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/monkeyWzr/hugo-theme-cactus.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGo <monkeywzr@gmail.com>2021-06-03 08:41:16 +0300
committerGitHub <noreply@github.com>2021-06-03 08:41:16 +0300
commit41d6a523573a4cc62cfc4301c991f2c2cf71e9e8 (patch)
tree6459dada51c987dd9270eb9fc32b9afe9b6d8e8d
parent2f9325922ab385d9cfc8c2ce12804a14645d05e2 (diff)
parent9d2cf4121b11e38774c55f2cd4ff15be09afcdd7 (diff)
Merge pull request #51 from lollipopman/add-main-section-title
Allow setting the main section title
-rw-r--r--README.md7
-rw-r--r--layouts/index.html2
2 files changed, 8 insertions, 1 deletions
diff --git a/README.md b/README.md
index 18d0456..6ed9626 100644
--- a/README.md
+++ b/README.md
@@ -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">