tags in home are links, inline with dates separated by a pipe; dates and tags have appropriate accompanying icons; specific tag section is now titled 'Tag: #sometag'
This commit is contained in:
parent
5bf2ffe70e
commit
5826b560ac
4 changed files with 14 additions and 8 deletions
|
|
@ -1,13 +1,11 @@
|
|||
{{ define "main" }}
|
||||
<h2>
|
||||
<span>
|
||||
{{ $title := .Title }}
|
||||
{{ $section := .Section | humanize }}
|
||||
{{ if and (ne $section $title) (ne $section "Tags") }}
|
||||
{{ $section }}:
|
||||
{{ end }}
|
||||
{{ if and (eq $section "Tags") (ne $section $title) }}#{{ end }}{{ $title }}
|
||||
</span>
|
||||
{{ if and (eq $section "Tags") (ne $section $title) }}Tag: #{{ end }}{{ $title }}
|
||||
</h2>
|
||||
|
||||
<ul>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue