From 4c306311fd532aeb5a9c5e27f2aa3f5533cf8ad4 Mon Sep 17 00:00:00 2001 From: Oscar Najera Date: Mon, 30 Oct 2023 00:20:32 +0100 Subject: Improve relative links --- layouts/partials/metadata.html | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'layouts/partials/metadata.html') diff --git a/layouts/partials/metadata.html b/layouts/partials/metadata.html index fdbb504..7756667 100644 --- a/layouts/partials/metadata.html +++ b/layouts/partials/metadata.html @@ -21,25 +21,27 @@ | {{ .ReadingTime }} mins read {{ end }} - {{ with .Params.tags }} + {{ with .GetTerms "tags" }} | - + {{ range . }} - {{ $href := print (absURL "tags/") (urlize .) }} - {{ . }} + {{ .Title }} {{ end }} {{ end }} - {{ with .Params.categories }} + {{ with .GetTerms "categories" }} | - + {{ range . }} - {{ $href := print (absURL "categories/") (urlize .) }} - {{ . }} + {{ .Title }} {{ end }} {{ end }}

-- cgit v1.2.3