This commit is contained in:
5
layouts/shortcodes/staticRef.html
Normal file
5
layouts/shortcodes/staticRef.html
Normal file
@@ -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 -}}
|
||||
Reference in New Issue
Block a user