From 3ea39841c8049525e31e9f4d6300f0c60cdb42de Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Tue, 24 Jan 2023 13:33:51 +0100 Subject: Adding upstream version 5.2.3+dfsg. Signed-off-by: Daniel Baumann --- site/layouts/partials/scripts.html | 72 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 site/layouts/partials/scripts.html (limited to 'site/layouts/partials/scripts.html') diff --git a/site/layouts/partials/scripts.html b/site/layouts/partials/scripts.html new file mode 100644 index 0000000..3378a23 --- /dev/null +++ b/site/layouts/partials/scripts.html @@ -0,0 +1,72 @@ +{{ if eq hugo.Environment "production" -}} + +{{ else -}} + +{{- end }} + +{{ if eq .Page.Layout "docs" -}} + + +{{- end }} + +{{- $vendor := resources.Match "js/vendor/*.js" -}} +{{- $js := resources.Match "js/*.js" -}} +{{- $targetDocsJSPath := path.Join "/docs" .Site.Params.docs_version "assets/js/docs.js" -}} +{{- $docsJs := append $js $vendor | resources.Concat $targetDocsJSPath -}} + +{{- if eq hugo.Environment "production" -}} + {{- $docsJs = $docsJs | resources.Minify -}} +{{- end }} + + + +{{ if eq .Page.Layout "docs" -}} + +{{- end }} -- cgit v1.2.3