adjust template of taxonomy and term
This commit is contained in:
parent
4c7fe1a56b
commit
c078c22ea3
33
layouts/_default/term.html
Normal file
33
layouts/_default/term.html
Normal file
|
@ -0,0 +1,33 @@
|
|||
{{ define "main" }}
|
||||
|
||||
<section id="archive">
|
||||
{{ range .Data.Pages.GroupByDate "2006" }}
|
||||
<div class="group">
|
||||
<h3 class="key">
|
||||
{{ .Key }}
|
||||
</h3>
|
||||
|
||||
{{ range .Pages }}
|
||||
<div class="value">
|
||||
<time class="date" datetime="{{ .PublishDate }}">{{ .PublishDate.Format "01/02" }}</time>
|
||||
|
||||
<div class="title">
|
||||
|
||||
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
||||
|
||||
{{ with .Params.tags }}
|
||||
{{ range . }}
|
||||
<a class="tags" href="{{ "/tags/" | relURL }}{{ . | urlize }}">{{ . }}</a>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
</section>
|
||||
|
||||
{{ end }}
|
Loading…
Reference in a new issue