1
0
Fork 0

添加分类页标题

This commit is contained in:
indes 2018-04-20 15:40:31 +08:00
parent 0cf0348320
commit 8b0a8cad83

View file

@ -1,9 +1,12 @@
{{ partial "header.html" . }} {{ partial "header.html" . }}
{{ if not .IsHome }} {{ if not .IsHome }}
<header class="list-header"> <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> <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 }} {{ end }}
</header> </header>
{{ end }} {{ end }}