Add tags to the menu and fixed formatting on tags' page

This commit is contained in:
Julien Dessaux 2021-03-11 19:05:16 +01:00
parent 60d3abc6ec
commit 56ef5f0685
4 changed files with 16 additions and 5 deletions

View file

@ -2,5 +2,5 @@
title: "Blog"
menu:
main:
weight: 2
weight: 3
---

View file

@ -2,7 +2,7 @@
title: "Docs"
menu:
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.

7
content/tags/_index.html Normal file
View file

@ -0,0 +1,7 @@
---
title: "Tags"
menu:
main:
weight: 1
---

View file

@ -1,11 +1,15 @@
{{ define "main" }}
{{ with .Content }}
{{ . }}
{{ end }}
<h1>{{ .Title }}</h1>
<ul>
{{ range .Data.Terms.Alphabetical }}
<p>
<a href="{{ .Page.Permalink }}">{{ .Page.Title }}</a> - {{ .Count }} posts
</p>
<li><a href="{{ .Page.Permalink }}">{{ .Page.Title }}</a> - {{ .Count }} posts</li>
{{ end }}
</ul>
{{ end }}