diff options
Diffstat (limited to 'layouts/shortcodes/static.html')
-rw-r--r-- | layouts/shortcodes/static.html | 5 |
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 |