Add tags to the menu and fixed formatting on tags' page
This commit is contained in:
parent
60d3abc6ec
commit
56ef5f0685
4 changed files with 16 additions and 5 deletions
|
@ -2,5 +2,5 @@
|
||||||
title: "Blog"
|
title: "Blog"
|
||||||
menu:
|
menu:
|
||||||
main:
|
main:
|
||||||
weight: 2
|
weight: 3
|
||||||
---
|
---
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
title: "Docs"
|
title: "Docs"
|
||||||
menu:
|
menu:
|
||||||
main:
|
main:
|
||||||
weight: 1
|
weight: 2
|
||||||
---
|
---
|
||||||
|
|
||||||
This is the Docs section of this website. It is an heritage of the old wiki I maintained, with information that does not really fit in a blog format.
|
This is the Docs section of this website. It is an heritage of the old wiki I maintained, with information that does not really fit in a blog format.
|
||||||
|
|
7
content/tags/_index.html
Normal file
7
content/tags/_index.html
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
---
|
||||||
|
title: "Tags"
|
||||||
|
menu:
|
||||||
|
main:
|
||||||
|
weight: 1
|
||||||
|
---
|
||||||
|
|
|
@ -1,11 +1,15 @@
|
||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
|
|
||||||
|
{{ with .Content }}
|
||||||
|
{{ . }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
<h1>{{ .Title }}</h1>
|
<h1>{{ .Title }}</h1>
|
||||||
|
|
||||||
|
<ul>
|
||||||
{{ range .Data.Terms.Alphabetical }}
|
{{ range .Data.Terms.Alphabetical }}
|
||||||
<p>
|
<li><a href="{{ .Page.Permalink }}">{{ .Page.Title }}</a> - {{ .Count }} posts</li>
|
||||||
<a href="{{ .Page.Permalink }}">{{ .Page.Title }}</a> - {{ .Count }} posts
|
|
||||||
</p>
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
</ul>
|
||||||
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
Loading…
Add table
Reference in a new issue