mirror of
https://github.com/distribution/distribution.git
synced 2025-09-02 07:25:25 +00:00
docs: add hugo site
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
This commit is contained in:
14
docs/themes/hugo-geekdoc/layouts/partials/utils/description.html
vendored
Normal file
14
docs/themes/hugo-geekdoc/layouts/partials/utils/description.html
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
{{ $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 }}
|
Reference in New Issue
Block a user