From: Bjørn Erik Pedersen Date: Tue, 11 Jan 2022 20:57:37 +0000 (+0100) Subject: docs: Add dependency table to maintainance page X-Git-Tag: v0.92.0~6 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=fbb3c181cb079ee422dd8ad13438464af8a90469;p=brevno-suite%2Fhugo docs: Add dependency table to maintainance page See #8949 --- diff --git a/docs/content/en/functions/hugo.md b/docs/content/en/functions/hugo.md index fb20d271..7602a2e3 100644 --- a/docs/content/en/functions/hugo.md +++ b/docs/content/en/functions/hugo.md @@ -88,6 +88,7 @@ An example table listing the dependencies: # + Owner Path Version Time @@ -98,7 +99,7 @@ An example table listing the dependencies: {{ range $index, $element := hugo.Deps }} {{ add $index 1 }} - {{ with $element.Owner }}{{.Path }}{{ else }}PROJECT{{ end }} + {{ with $element.Owner }}{{.Path }}{{ end }} {{ $element.Path }} {{ with $element.Replace}} diff --git a/docs/layouts/maintenance/list.html b/docs/layouts/maintenance/list.html index 50059ad9..ff573d54 100644 --- a/docs/layouts/maintenance/list.html +++ b/docs/layouts/maintenance/list.html @@ -7,7 +7,8 @@ @@ -30,6 +31,37 @@

Pages marked with TODO

{{ partial "maintenance-pages-table" (.Scratch.Get "todos") }} +

Dependencies

+ + + + + + + + + + + + + {{ range $index, $element := hugo.Deps }} + + + + + + + + + {{ end }} + +
#OwnerPathVersionTimeVendor
{{ add $index 1 }}{{ with $element.Owner }}{{.Path }}{{ end }} + {{ $element.Path }} + {{ with $element.Replace}} + => {{ .Path }} + {{ end }} + {{ $element.Version }}{{ with $element.Time }}{{ . }}{{ end }}{{ $element.Vendor }}
+