diff options
author | Julien Dessaux | 2021-03-11 19:05:16 +0100 |
---|---|---|
committer | Julien Dessaux | 2021-03-11 19:05:16 +0100 |
commit | 56ef5f0685017a612eab192e2221064fc9ee4ae8 (patch) | |
tree | 39b6c0363db6bcf297d3820aa2cdd99b3a556593 | |
parent | Rewrote the whole website to get rid on a heavy theme (diff) | |
download | www-56ef5f0685017a612eab192e2221064fc9ee4ae8.tar.gz www-56ef5f0685017a612eab192e2221064fc9ee4ae8.tar.bz2 www-56ef5f0685017a612eab192e2221064fc9ee4ae8.zip |
Add tags to the menu and fixed formatting on tags' page
-rw-r--r-- | content/blog/_index.md | 2 | ||||
-rw-r--r-- | content/docs/_index.md | 2 | ||||
-rw-r--r-- | content/tags/_index.html | 7 | ||||
-rw-r--r-- | layouts/_default/terms.html | 10 |
4 files changed, 16 insertions, 5 deletions
diff --git a/content/blog/_index.md b/content/blog/_index.md index 098f984..b2e44f0 100644 --- a/content/blog/_index.md +++ b/content/blog/_index.md @@ -2,5 +2,5 @@ title: "Blog" menu: main: - weight: 2 + weight: 3 --- diff --git a/content/docs/_index.md b/content/docs/_index.md index 69ac38f..03907d3 100644 --- a/content/docs/_index.md +++ b/content/docs/_index.md @@ -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. diff --git a/content/tags/_index.html b/content/tags/_index.html new file mode 100644 index 0000000..7b2b4b8 --- /dev/null +++ b/content/tags/_index.html @@ -0,0 +1,7 @@ +--- +title: "Tags" +menu: + main: + weight: 1 +--- + diff --git a/layouts/_default/terms.html b/layouts/_default/terms.html index 138e964..8cca470 100644 --- a/layouts/_default/terms.html +++ b/layouts/_default/terms.html @@ -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 }} |