添加分类页标题
This commit is contained in:
parent
0cf0348320
commit
8b0a8cad83
1 changed files with 5 additions and 2 deletions
|
@ -1,9 +1,12 @@
|
|||
{{ partial "header.html" . }}
|
||||
{{ if not .IsHome }}
|
||||
<header class="list-header">
|
||||
{{ if eq .Data.Singular "tag" }}<span>Tagged in</span>
|
||||
{{ if eq .Data.Singular "tag" }}
|
||||
<span>Tagged in</span>
|
||||
<h1 class="list-title">{{ .Data.Term }}</h1>
|
||||
{{ else }}<h1 class="list-title">Posts</h1>
|
||||
{{ else }}
|
||||
<span>categoried in</span>
|
||||
<h1 class="list-title">{{ with .Title }}{{ . }}{{ end }}</h1>
|
||||
{{ end }}
|
||||
</header>
|
||||
{{ end }}
|
||||
|
|
Loading…
Reference in a new issue