diff options
author | Oscar Najera <hi@oscarnajera.com> | 2023-10-30 00:20:32 +0100 |
---|---|---|
committer | Oscar Najera <hi@oscarnajera.com> | 2023-10-30 00:20:32 +0100 |
commit | 4c306311fd532aeb5a9c5e27f2aa3f5533cf8ad4 (patch) | |
tree | bff05878f3882e8ef7dbcd21eaf4389b97b2ec6d /layouts/partials/metadata.html | |
parent | 101bbe9ec5b1c19b586b7a33feb74751cdd9e7b9 (diff) | |
download | hugo-minimalist-theme-4c306311fd532aeb5a9c5e27f2aa3f5533cf8ad4.tar.gz hugo-minimalist-theme-4c306311fd532aeb5a9c5e27f2aa3f5533cf8ad4.tar.bz2 hugo-minimalist-theme-4c306311fd532aeb5a9c5e27f2aa3f5533cf8ad4.zip |
Improve relative links
Diffstat (limited to 'layouts/partials/metadata.html')
-rw-r--r-- | layouts/partials/metadata.html | 18 |
1 files changed, 10 insertions, 8 deletions
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" }} | - <a href="/tags" class="link grow w3-text-theme ph1"> + <a href="/tags" class="link w3-text-theme ph1"> <i class="fas fa-tags"></i> </a> {{ range . }} - {{ $href := print (absURL "tags/") (urlize .) }} - <a class="link underline color-inherit" href="{{ $href }}">{{ . }}</a> + <a class="link underline color-inherit" href="{{ .RelPermalink }}" + >{{ .Title }}</a + > {{ end }} {{ end }} - {{ with .Params.categories }} + {{ with .GetTerms "categories" }} | - <a href="/categories" class="link grow w3-text-theme ph1"> + <a href="/categories" class="link w3-text-theme ph1"> <i class="fas fa-folder-open"></i> </a> {{ range . }} - {{ $href := print (absURL "categories/") (urlize .) }} - <a class="underline color-inherit" href="{{ $href }}">{{ . }}</a> + <a class="link underline color-inherit" href="{{ .RelPermalink }}" + >{{ .Title }}</a + > {{ end }} {{ end }} </p> |