From fbb3c181cb079ee422dd8ad13438464af8a90469 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Tue, 11 Jan 2022 21:57:37 +0100 Subject: [PATCH] docs: Add dependency table to maintainance page See #8949 --- docs/content/en/functions/hugo.md | 3 ++- docs/layouts/maintenance/list.html | 34 +++++++++++++++++++++++++++++- 2 files changed, 35 insertions(+), 2 deletions(-) diff --git a/docs/content/en/functions/hugo.md b/docs/content/en/functions/hugo.md index fb20d2717a8..7602a2e343a 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 50059ad9e8a..ff573d54b71 100644 --- a/docs/layouts/maintenance/list.html +++ b/docs/layouts/maintenance/list.html @@ -7,7 +7,8 @@ @@ -30,6 +31,37 @@

Least Recently Updated

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 }}
+