github.com/square/finch@v0.0.0-20240412205204-6530c03e2b96/docs/themes/hugo-geekdoc/layouts/partials/utils/description.html (about)

     1  {{ $isPage := or (and (ne .Type "posts") (in "section page" .Kind )) (and (eq .Type "posts") (eq .Kind "page")) }}
     2  {{ $description := "" }}
     3  
     4  {{ if .Description }}
     5    {{ $description = .Description }}
     6  {{ else }}
     7    {{ if $isPage }}
     8      {{ $description = .Summary }}
     9    {{ else if .Site.Params.description }}
    10      {{ $description = .Site.Params.description }}
    11    {{ end }}
    12  {{ end }}
    13  
    14  {{ return $description }}