Improve semantics
This commit is contained in:
parent
f6142d897b
commit
807444f69a
|
@ -11,11 +11,11 @@
|
||||||
{{ if eq $title "Posts" }}
|
{{ if eq $title "Posts" }}
|
||||||
<div class="categories">
|
<div class="categories">
|
||||||
<h2>Categories</h2>
|
<h2>Categories</h2>
|
||||||
|
<p>
|
||||||
{{ range ($.Site.GetPage "taxonomyTerm" "categories").Pages }}
|
{{ range ($.Site.GetPage "taxonomyTerm" "categories").Pages }}
|
||||||
<a class="button" href="{{.Permalink}}">
|
<a class="button" href="{{.Permalink}}">{{.Title}}</a>
|
||||||
<p>{{.Title}}</p>
|
{{- end }}
|
||||||
</a>
|
</p>
|
||||||
{{end}}
|
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
@ -30,11 +30,11 @@
|
||||||
<span class="posts-day">{{ if .Site.Params.dateformShort }}{{ .Date.Format .Site.Params.dateformShort }}{{ else }}{{ .Date.Format "Jan 02"}}{{ end }}</span>
|
<span class="posts-day">{{ if .Site.Params.dateformShort }}{{ .Date.Format .Site.Params.dateformShort }}{{ else }}{{ .Date.Format "Jan 02"}}{{ end }}</span>
|
||||||
</a>
|
</a>
|
||||||
<p>{{ .Summary | truncate 140 }}</p>
|
<p>{{ .Summary | truncate 140 }}</p>
|
||||||
{{ range (.GetTerms "tags") }}
|
<p>
|
||||||
<a class="button" href="{{.Permalink}}">
|
{{- range (.GetTerms "tags") }}
|
||||||
<p>{{.Title}}</p>
|
<a class="button" href="{{.Permalink}}">{{.Title}}</a>
|
||||||
</a>
|
{{- end }}
|
||||||
{{ end }}
|
</p>
|
||||||
</li>
|
</li>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
Loading…
Reference in New Issue