github.com/e154/smart-home@v0.17.2-0.20240311175135-e530a6e5cd45/doc/themes/docsy/layouts/_default/taxonomy.html (about)

     1  {{ define "main" }}
     2  <div class="td-content">
     3    <main class="taxonomy-taxonomy-page">
     4      <h1>{{ with .Data.Singular }}{{ . | humanize }}: {{ end }}<span>{{ .Title }}</span></h1>
     5      <div>
     6        {{ .Content }}
     7      </div>
     8      <div>
     9        {{ range .Pages }}
    10          {{ $manualLink := cond (isset .Params "manuallink") .Params.manualLink ( cond (isset .Params "manuallinkrelref") (relref . .Params.manualLinkRelref) .RelPermalink) }}
    11          <article class="article-teaser article-type-{{ with .Type }}{{ ( urlize . ) }}{{ end }}">
    12            <h3><a href="{{ $manualLink }}"{{ with .Params.manualLinkTitle }} title="{{ . }}"{{ end }}{{ with .Params.manualLinkTarget }} target="{{ . }}"{{ if eq . "_blank" }} rel="noopener"{{ end }}{{ end }}>{{- .Title -}}</a></h3>
    13            <p>{{ .Description | markdownify }}</p>
    14            <header class="article-meta">
    15              {{ $context := . }}
    16              {{ if .Site.Params.Taxonomy.taxonomyPageHeader }}
    17                {{ range $index, $taxo := .Site.Params.Taxonomy.taxonomyPageHeader }}
    18                  {{ partial "taxonomy_terms_article.html" (dict "context" $context "taxo" $taxo ) }}
    19                {{ end }}
    20              {{ else }}
    21                {{ range $taxo, $taxo_map := .Site.Taxonomies }}
    22                  {{ partial "taxonomy_terms_article.html" (dict "context" $context "taxo" $taxo ) }}
    23                {{ end }}
    24              {{ end }}
    25              {{ if (and (not .Params.hide_readingtime) (.Site.Params.ui.readingtime.enable)) }}
    26                {{ partial "reading-time.html" . }}
    27              {{ end }}
    28            </header>
    29          </article>
    30        {{ end }}
    31      </div>
    32      <a href="{{ with .Site.GetPage (printf "/%s" ( lower .Data.Plural )) }}{{ .Permalink }}{{ end }}" class="all-taxonomy-terms">{{ humanize ( T "ui_all" ) }} {{ with .Data.Plural }}{{ . | humanize }}{{ end }}</a>
    33    </main>
    34  </div>
    35  {{ end }}