Skip to content

Commit

Permalink
fix: tag
Browse files Browse the repository at this point in the history
Closes #1362
  • Loading branch information
HEIGE-PCloud committed Dec 20, 2024
1 parent 2d0b0d7 commit a78515e
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 3 deletions.
2 changes: 1 addition & 1 deletion assets/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
}

/*
! tailwindcss v3.4.16 | MIT License | https://tailwindcss.com
! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com
*/

/*
Expand Down
38 changes: 36 additions & 2 deletions layouts/partials/function/path.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,37 @@
{{- /* https://discourse.gohugo.io/t/how-decode-urls-in-hugo/7549/4 */ -}}
{{- $URL := . | urlquery | urlize | urls.Parse -}}
{{- return $URL.Path -}}
{{- $URL := . | urlize | urls.Parse -}}
{{/* Replace # with %23 */}}
{{- $path := $URL.Path -}}
{{- $path = strings.Replace $path "#" "%23" -}}
{{- /* Replace ? with %3F */ -}}
{{/* {{- $path = strings.Replace $path "?" "%3F" -}} */}}
{{- /* Replace & with %26 */ -}}
{{/* {{- $path = strings.Replace $path "&" "%26" -}} */}}
{{- /* Replace = with %3D */ -}}
{{/* {{- $path = strings.Replace $path "=" "%3D" -}} */}}
{{- /* Replace + with %2B */ -}}
{{/* {{- $path = strings.Replace $path "+" "%2B" -}} */}}
{{- /* Replace / with %2F */ -}}
{{/* {{- $path = strings.Replace $path "/" "%2F" -}} */}}
{{- /* Replace % with %25 */ -}}
{{/* {{- $path = strings.Replace $path "%" "%25" -}} */}}
{{- /* Replace ? with %3F */ -}}
{{/* {{- $path = strings.Replace $path "?" "%3F" -}} */}}
{{- /* Replace & with %26 */ -}}
{{/* {{- $path = strings.Replace $path "&" "%26" -}} */}}
{{- /* Replace = with %3D */ -}}
{{/* {{- $path = strings.Replace $path "=" "%3D" -}} */}}
{{- /* Replace + with %2B */ -}}
{{/* {{- $path = strings.Replace $path "+" "%2B" -}} */}}
{{- /* Replace / with %2F */ -}}
{{/* {{- $path = strings.Replace $path "/" "%2F" -}} */}}
{{- /* Replace % with %25 */ -}}
{{/* {{- $path = strings.Replace $path "%" "%25" -}} */}}
{{- /* Replace ? with %3F */ -}}
{{/* {{- $path = strings.Replace $path "?" "%3F" -}} */}}
{{- /* Replace & with %26 */ -}}
{{/* {{- $path = strings.Replace $path "&" "%26" -}} */}}
{{- /* Replace = with %3D */ -}}
{{/* {{- $path = strings.Replace $path "=" "%3D" -}} */}}
{{/* {{ warnf "%v %v" . $URL }} */}}
{{- return $path -}}

0 comments on commit a78515e

Please sign in to comment.