aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/partials/function-strip-filechars.html
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2022-12-21 19:20:43 -0500
committertdro <tdro@noreply.example.com>2022-12-21 19:20:43 -0500
commitb7acf1be64b6845a0b826a1af4c0db62e70e9aba (patch)
tree27c47c722f035ebdf210dabdda025467d7431ec1 /themes/default/layouts/partials/function-strip-filechars.html
parent1ee7be4fb6e73ced1a314712e870759e8ff7eff5 (diff)
downloadcanory-b7acf1be64b6845a0b826a1af4c0db62e70e9aba.tar.gz
canory-b7acf1be64b6845a0b826a1af4c0db62e70e9aba.tar.bz2
canory-b7acf1be64b6845a0b826a1af4c0db62e70e9aba.zip
themes/default/layouts/partials/function-strip-filechars: Use replace here
function-strip-urlchars -> function-strip-filechars
Diffstat (limited to 'themes/default/layouts/partials/function-strip-filechars.html')
-rw-r--r--themes/default/layouts/partials/function-strip-filechars.html28
1 files changed, 28 insertions, 0 deletions
diff --git a/themes/default/layouts/partials/function-strip-filechars.html b/themes/default/layouts/partials/function-strip-filechars.html
new file mode 100644
index 0000000..b68daa0
--- /dev/null
+++ b/themes/default/layouts/partials/function-strip-filechars.html
@@ -0,0 +1,28 @@
+{{- $input := . -}}
+{{- $output := $input -}}
+
+{{- $output = replace $output `{` "" -}}
+{{- $output = replace $output `}` "" -}}
+{{- $output = replace $output `|` "" -}}
+{{- $output = replace $output `\` "" -}}
+{{- $output = replace $output `^` "" -}}
+{{- $output = replace $output `[` "" -}}
+{{- $output = replace $output `]` "" -}}
+{{- $output = replace $output "`" "" -}}
+{{- $output = replace $output `;` "" -}}
+{{- $output = replace $output `/` "" -}}
+{{- $output = replace $output `?` "" -}}
+{{- $output = replace $output `:` "" -}}
+{{- $output = replace $output `@` "" -}}
+{{- $output = replace $output `&` "" -}}
+{{- $output = replace $output `=` "" -}}
+{{- $output = replace $output `+` "" -}}
+{{- $output = replace $output `$` "" -}}
+{{- $output = replace $output `,` "" -}}
+{{- $output = replace $output `<` "" -}}
+{{- $output = replace $output `>` "" -}}
+{{- $output = replace $output `#` "" -}}
+{{- $output = replace $output `%` "" -}}
+{{- $output = replace $output `\` "" -}}
+
+{{- return $output -}}