m2.nz/themes/LoveIt/layouts/partials/function/path.html
2022-05-08 18:50:17 +12:00

4 lines
140 B
HTML

{{- /* https://discourse.gohugo.io/t/how-decode-urls-in-hugo/7549/4 */ -}}
{{- $URL := . | urlize | urls.Parse -}}
{{- return $URL.Path -}}