Skip to content

Commit

Permalink
fix: use RelPermalink for taxonomies link in list and single page. close
Browse files Browse the repository at this point in the history
  • Loading branch information
tomowang committed Jul 15, 2024
1 parent fbd1afb commit ea815ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions layouts/partials/block/taxonomies.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{{ if .Params.categories }}
{{ range (.GetTerms "categories") }}
<li>
<a href="{{ (urlize (printf "categories/%s" . )) | relLangURL }}/"
<a href="{{ .RelPermalink }}"
class="text-sm mr-2 px-2 py-1 rounded border border-emerald-800 bg-emerald-800 text-slate-50">
{{ .LinkTitle }}
</a>
Expand All @@ -13,7 +13,7 @@
{{ if .Params.tags }}
{{ range (.GetTerms "tags") }}
<li>
<a href="{{ (urlize (printf "tags/%s" . )) | relLangURL }}/"
<a href="{{ .RelPermalink }}"
class="flex flex-row text-sm mr-2 py-1">
<i class="h-5 w-5 flex-none">
{{ partial "icon.html" site.Params.taxonomies.icons.tags }}
Expand Down

0 comments on commit ea815ba

Please sign in to comment.