initial commit for the page

This commit is contained in:
steam
2021-09-17 15:20:18 +02:00
parent f52d2613ea
commit 05bf0238b1
119 changed files with 4738 additions and 1 deletions
View File
+14
View File
@@ -0,0 +1,14 @@
<footer class="footer">
{{- if .Site.Copyright }}
<span>{{ .Site.Copyright | markdownify }}</span>
{{- else }}
<span>&copy; {{ now.Year }} <a href="{{ "" | absLangURL }}">{{ .Site.Title }}</a></span>
{{- end }}
<span>
Powered by
<a href="https://gohugo.io/" rel="noopener noreferrer" target="_blank">Hugo</a> &
<a href="https://git.io/hugopapermod" rel="noopener" target="_blank">PaperMod</a> &nbsp;&nbsp;
<a href=/data_protection/ rel="noopener" target="_blank">Datenschutzerkl&auml;rung</a> &nbsp;&nbsp;
<a href=/impressum/ rel="noopener" target="_blank">Impressum</a>
</span>
</footer>
+18
View File
@@ -0,0 +1,18 @@
{{/* shortcodes/obfuscate.html */}}
{{ $encoded := (.Inner | htmlEscape | markdownify | base64Encode) }}
{{ $halfLength := div (len $encoded) 2 }}
{{ $part1 := substr $encoded 0 $halfLength }}
{{ $part2 := substr $encoded $halfLength }}
<span id="mangled_{{ md5 $encoded }}">[ OBFUSCATED ]</span>
<script>
(() => {
let base64ToUnicode = str =>
decodeURIComponent(atob(str).split("").map(c =>
"%" + ("00" + c.charCodeAt(0).toString(16)).slice(-2)).join(""));
document.addEventListener("DOMContentLoaded", () => {
let element = document.getElementById("mangled_{{ md5 $encoded }}");
element.innerHTML = base64ToUnicode({{ $part1 }} + {{ $part2 }});
});
})();
</script>