
Building this site requires Hugo (not yet included in the README or in the installation of dependencies in the Makefile). Still very much work in progress, this is basically the [Geekdocks theme][1] + one page. [1]: https://geekdocs.de/
15 lines
403 B
HTML
15 lines
403 B
HTML
{{ $isPage := or (and (ne .Type "posts") (in "section page" .Kind )) (and (eq .Type "posts") (eq .Kind "page")) }}
|
|
{{ $description := "" }}
|
|
|
|
{{ if .Description }}
|
|
{{ $description = .Description }}
|
|
{{ else }}
|
|
{{ if $isPage }}
|
|
{{ $description = .Summary }}
|
|
{{ else if .Site.Params.description }}
|
|
{{ $description = .Site.Params.description }}
|
|
{{ end }}
|
|
{{ end }}
|
|
|
|
{{ return $description }}
|