changed tags list style, hiding date and sorting alphabetically
This commit is contained in:
parent
8d1905bd07
commit
6f8e3cfdb4
|
@ -7,7 +7,20 @@
|
||||||
{{ if and (eq $section "Tags") (ne $section $title) }}Tag: #{{ end }}{{ $title }}
|
{{ if and (eq $section "Tags") (ne $section $title) }}Tag: #{{ end }}{{ $title }}
|
||||||
</h2>
|
</h2>
|
||||||
<ul class="list">
|
<ul class="list">
|
||||||
|
{{ if and (eq $section "Tags") (eq $section $title) }}
|
||||||
|
{{/* if we're in the Tags section, sort alphabetically and don't show the date */}}
|
||||||
|
{{ range (sort .Pages "Title") }}
|
||||||
|
<li>
|
||||||
|
<a href="{{ .Permalink }}">#{{ .Title }}</a>
|
||||||
|
</li>
|
||||||
|
{{ end }}
|
||||||
|
{{ else }}
|
||||||
{{ range .Pages }}
|
{{ range .Pages }}
|
||||||
<li><span class="date">{{ .Date.Format "2006-01-02" }}</span> <a href="{{ .Permalink }}">{{ .Title }}</a></li>
|
<li>
|
||||||
|
<span class="date">
|
||||||
|
{{ .Date.Format "2006-01-02" }}
|
||||||
|
</span> <a href="{{ .Permalink }}">{{ .Title }}</a>
|
||||||
|
</li>
|
||||||
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
Loading…
Reference in New Issue