Changed tags to allow same-name taggs with different categories, added tag list

This commit is contained in:
2017-10-14 13:57:17 +02:00
parent 4b814cedad
commit 85bf3a73db
10 changed files with 220 additions and 13 deletions
+2 -2
View File
@@ -5,7 +5,7 @@
{{ end }}
{{ define "menu" }}
<a href="/page/{{$.Page.ID}}"><h1>Page</h1></a>
<a href="/"><h1>Page</h1></a>
{{ if $.Page.Dated}}
<div class="page-property">{{$.Page.FictionalDate | formatDate}}</div>
{{ else }}
@@ -14,7 +14,7 @@
<ul>
{{ range $.Page.Tags }}
<li><a href="/{{.Hook}}"><div class="mg-icon">{{.Icon}}</div><div class="mg-label {{.CSSCLass}}">{{.Name}}</div></a></li>
<li><a href="/{{.Type}}/{{.Hook}}"><div class="mg-icon">{{.Icon}}</div><div class="mg-label {{.CSSCLass}}">{{.Name}}</div></a></li>
{{ end }}
</ul>