<section>
  {{ range $taxonomyname, $taxonomy := .Site.Taxonomies }}
  {{ if gt (len $taxonomy) 0 }}

  {{ if eq $taxonomyname "tags" }}
  <h3 class="post-block-title my-4">
    <span>標籤</span>
  </h3>
  {{ else }}
  <h3 class="post-block-title my-4">
    <span>分類</span>
  </h3>
  {{ end }}

  <p>
    {{ range $name, $value := $taxonomy }}
    <a class="btn btn-small badge tags" href="{{ printf  $taxonomyname | relLangURL }}/{{ $name | urlize }}/">
      <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-tag-fill"
        viewBox="0 0 16 16">
        <path
          d="M2 1a1 1 0 0 0-1 1v4.586a1 1 0 0 0 .293.707l7 7a1 1 0 0 0 1.414 0l4.586-4.586a1 1 0 0 0 0-1.414l-7-7A1 1 0 0 0 6.586 1H2zm4 3.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0z" />
      </svg>
      {{ $name }}
    </a>
    {{ end }}
  </p>
  {{ end }}
  {{ end }}
</section>