Browse Source

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.
main
dataCobra 2 years ago
parent
commit
c36750873c
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      layouts/_default/list.html
  2. +1
    -1
      layouts/_default/terms.html

+ 1
- 1
layouts/_default/list.html View File

@ -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">


+ 1
- 1
layouts/_default/terms.html View File

@ -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 }}


Loading…
Cancel
Save