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

github.com/knadh/hugo-ink.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordataCobra <datacobra@mailbox.org>2019-12-14 18:54:17 +0300
committerdataCobra <datacobra@mailbox.org>2019-12-14 18:54:17 +0300
commitc36750873c39799e16cfff18e86fbbad9f9f7967 (patch)
tree371e975792e08a25de70a801503a70f99f4110dc
parent58e4c3224eddca0000edadfdf2eb0870c3569f8b (diff)
Replace hardcoded title of lists and terms
Now the title for lists and terms is the same as the name chosen for the menu entry.
-rw-r--r--layouts/_default/list.html2
-rw-r--r--layouts/_default/terms.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 60b09bd..3f40182 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -9,7 +9,7 @@
{{ if isset .Data "Term" }}
<h2>{{ .Data.Term }}</h2>
{{ else }}
- <h2 class="page-title">All posts</h2>
+ <h2 class="page-title">{{ .Name }}</h2>
{{ end }}
<ul class="posts flat">
diff --git a/layouts/_default/terms.html b/layouts/_default/terms.html
index 461f85a..6ec46d5 100644
--- a/layouts/_default/terms.html
+++ b/layouts/_default/terms.html
@@ -6,7 +6,7 @@
<div class="container wrapper tags">
{{ partial "head.html" . }}
- <h1 class="page-title">All tags</h1>
+ <h1 class="page-title">{{ .Name }}</h1>
{{ $biggest := 1 }}
{{ $smallest := 1 }}