Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/vjeantet/hugo-theme-docport.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/shortcodes/static.html')
-rw-r--r--layouts/shortcodes/static.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/layouts/shortcodes/static.html b/layouts/shortcodes/static.html
new file mode 100644
index 0000000..f73e477
--- /dev/null
+++ b/layouts/shortcodes/static.html
@@ -0,0 +1,5 @@
+{{- .Scratch.Set "path" (.Get 0) -}}
+{{- if hasPrefix (.Scratch.Get "path") "/" -}}
+ {{- .Scratch.Set "path" (slicestr (.Scratch.Get "path") 1) -}}
+{{- end -}}
+{{- .Scratch.Get "path" | absLangURL -}} \ No newline at end of file