From 57dcd87622abdaae205a0e4d9cc884a4e802c17c Mon Sep 17 00:00:00 2001 From: anoduck <9925396+anoduck@users.noreply.github.com> Date: Fri, 28 Mar 2025 18:33:33 -0400 Subject: fix(google): google 404 made modifications to prevent 404 errors with google. --- layouts/_default/single.html | 2 +- layouts/alias.html | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 layouts/alias.html (limited to 'layouts') diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 4d15895..8d772a1 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -41,5 +41,5 @@ {{ end -}} -{{ template "_internal/disqus.html" . }} + {{ template "_internal/disqus.html" . }} {{ end -}} \ No newline at end of file diff --git a/layouts/alias.html b/layouts/alias.html new file mode 100644 index 0000000..d220f68 --- /dev/null +++ b/layouts/alias.html @@ -0,0 +1,15 @@ +{{- $url := .Permalink -}} +{{- $match := findRE "[A-Z]" $url -}} +{{ if $match -}} + {{- $lower_url := $url | lower -}} + + + + Page Redirection {{ .Permalink | relLangURL }} + + + + + + +{{ end -}} \ No newline at end of file -- cgit v1.2.3