You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Figured it out. This can be further modified to customize the look.
Added a new partial under layouts/partials called "categories.html" with the below code: <ul class="pa0"> {{ range .GetTerms "categories" }} <li class="list di"> <b>Categories: </b><a href="{{ .RelPermalink }}" class="link f5 grow no-underline br-pill ba ph3 pv2 mb2 dib black sans-serif"> {{- .LinkTitle -}} </a> </li> {{ end }} </ul>
Then in layouts/_default, modified single.html by adding the categories above the {{ Content }} like this: {{- partial "categories.html" . -}}
You only list the tags of the Hugo posts. But Hugo also supports
categories
as taxonomies. Could you please also show them when viewing the post?Example of the markdown page section with
categories
:The text was updated successfully, but these errors were encountered: