diff options
author | Julien Dessaux | 2021-03-12 12:38:33 +0100 |
---|---|---|
committer | Julien Dessaux | 2021-03-12 12:38:33 +0100 |
commit | 0457e2249a42fd50d2e6bba4f3d2e30a23569d5c (patch) | |
tree | 4be28bbf8b9366cffe59a3aef566df651314b7f6 | |
parent | Limit the number of articles in the rss feed and output the full article (diff) | |
download | www-0457e2249a42fd50d2e6bba4f3d2e30a23569d5c.tar.gz www-0457e2249a42fd50d2e6bba4f3d2e30a23569d5c.tar.bz2 www-0457e2249a42fd50d2e6bba4f3d2e30a23569d5c.zip |
Simplified tags menu generation
-rw-r--r-- | content/tags/_index.html | 7 | ||||
-rw-r--r-- | layouts/partials/nav.html | 1 |
2 files changed, 1 insertions, 7 deletions
diff --git a/content/tags/_index.html b/content/tags/_index.html deleted file mode 100644 index 7b2b4b8..0000000 --- a/content/tags/_index.html +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: "Tags" -menu: - main: - weight: 1 ---- - diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html index b3e4863..bf65d09 100644 --- a/layouts/partials/nav.html +++ b/layouts/partials/nav.html @@ -3,6 +3,7 @@ <ul> <li class="nav-menu-title"><a href="/">{{ .Site.Title }}</a></li> <li><a href="/index.xml">RSS</a></li> + <li><a href="/tags/">Tags</a></li> {{- $p := . -}} {{- range .Site.Menus.main.ByWeight -}} {{- $active := or ($p.IsMenuCurrent "main" .) ($p.HasMenuCurrent "main" .) -}} |