summaryrefslogtreecommitdiff
path: root/layouts/_partials/components/category-pill.html
blob: 6146f0d46e7a02c22700dc27de19cc9d789933ef (plain)
1
2
3
4
5
6
7
{{ with .GetTerms "categories" }}
  {{ with index . 0 }}
    <a class="post-category text-secondary" href="{{ .RelPermalink }}">
      <span>《{{ .LinkTitle }}》</span>
    </a>
  {{ end }}
{{ end }}