diff options
author | Jesse Luehrs <doy@tozt.net> | 2022-03-19 15:16:10 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2022-03-19 15:16:10 -0400 |
commit | 7c3c4a1cb541a81350e0828a887f1ff4210a0ee1 (patch) | |
tree | f0de05b70cee9455ead2b86d02bfc7f90005417e | |
parent | dcba0e24f34d9b0547b0a6f6988c442596a49a6e (diff) | |
download | tozt-hugo-7c3c4a1cb541a81350e0828a887f1ff4210a0ee1.tar.gz tozt-hugo-7c3c4a1cb541a81350e0828a887f1ff4210a0ee1.zip |
fix hugo
-rw-r--r-- | themes/tozt/layouts/blog/list.html | 2 | ||||
-rw-r--r-- | themes/tozt/layouts/partials/header.html | 2 | ||||
-rw-r--r-- | themes/tozt/layouts/recipes/list.html | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/themes/tozt/layouts/blog/list.html b/themes/tozt/layouts/blog/list.html index 9483571..68ea2a4 100644 --- a/themes/tozt/layouts/blog/list.html +++ b/themes/tozt/layouts/blog/list.html @@ -6,7 +6,7 @@ {{ range (where .Data.Pages "Section" "!=" "") }} <li> <span class="date">{{ .Date.Format "2006/01/02" }}</span> - <a href="{{ .URL }}">{{ .Title | markdownify }}</a> + <a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a> </li> {{ end }} </ul> diff --git a/themes/tozt/layouts/partials/header.html b/themes/tozt/layouts/partials/header.html index 50a465b..fc8b583 100644 --- a/themes/tozt/layouts/partials/header.html +++ b/themes/tozt/layouts/partials/header.html @@ -20,7 +20,7 @@ <ul class="menu"> {{ $page := $}} {{ range $menu := .Site.Menus.main }} - <li{{ if eq $page.URL $menu.URL }} class="active"{{ end }}> + <li{{ if eq $page.RelPermalink $menu.URL }} class="active"{{ end }}> <a href="{{ $menu.URL | relURL }}">{{ .Name }}</a> </li> {{ end }} diff --git a/themes/tozt/layouts/recipes/list.html b/themes/tozt/layouts/recipes/list.html index 1c0c82e..2caead7 100644 --- a/themes/tozt/layouts/recipes/list.html +++ b/themes/tozt/layouts/recipes/list.html @@ -5,7 +5,7 @@ <ul> {{ range (where .Data.Pages "Section" "!=" "") }} <li> - <a href="{{ .URL }}">{{ .Title | markdownify }}</a> + <a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a> </li> {{ end }} </ul> |