diff options
Diffstat (limited to 'themes/LoveIt/layouts/partials/function/path.html')
-rw-r--r-- | themes/LoveIt/layouts/partials/function/path.html | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/themes/LoveIt/layouts/partials/function/path.html b/themes/LoveIt/layouts/partials/function/path.html new file mode 100644 index 0000000..ece426f --- /dev/null +++ b/themes/LoveIt/layouts/partials/function/path.html @@ -0,0 +1,3 @@ +{{- /* https://discourse.gohugo.io/t/how-decode-urls-in-hugo/7549/4 */ -}} +{{- $URL := . | urlize | urls.Parse -}} +{{- return $URL.Path -}} |