Skip to content

Commit

Permalink
Fix 404 bug from upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmc3 committed Jul 11, 2024
1 parent 9cadff7 commit f7b2401
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions layouts/partials/block/taxonomies.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{{ if (or .Params.categories .Params.tags) }}
<ul class="flex flex-row flex-wrap text-slate-500 dark:text-slate-300">
{{ if .Params.categories }}
{{ range (.GetTerms "categories") }}
<li>
<a href="{{ (urlize (printf "/categories/%s" .LinkTitle )) | relLangURL }}/"
class="text-sm mr-2 px-2 py-1 rounded border border-emerald-800 bg-emerald-800 text-slate-50">
{{ .LinkTitle }}
</a>
</li>
{{ end }}
{{ end }}
{{ if .Params.tags }}
{{ range (.GetTerms "tags") }}
<li>
<a href="{{ (urlize (printf "/tags/%s" .LinkTitle )) | relLangURL }}/" 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 }}
</i>
<span class="ml-0">{{ .LinkTitle }}</span>
</a>
</li>
{{ end }}
{{ end }}
</ul>
{{ end }}

0 comments on commit f7b2401

Please sign in to comment.