2024-05-27 21:13:51 +00:00
|
|
|
{{ define "main"}}
|
|
|
|
|
|
|
|
<div class="text-404">
|
|
|
|
<h1 class="error-emoji"></h1>
|
|
|
|
<h2>
|
2024-06-19 22:18:29 +00:00
|
|
|
... {{ i18n "error404" . }} <a href="{{ .Site.BaseURL }}">{{ i18n "home" }}</a>
|
2024-05-27 21:13:51 +00:00
|
|
|
</h2>
|
|
|
|
</div>
|
|
|
|
<script>
|
|
|
|
const errorEmojiContainer = document.getElementsByClassName('error-emoji')[0];
|
|
|
|
const emojiArray = [
|
|
|
|
'\\(o_o)/', '(o^^)o', '(˚Δ˚)b', '(^-^*)', '(≥o≤)', '(^_^)b', '(·_·)',
|
|
|
|
'(=\'X\'=)', '(>_<)', '(;-;)', '\\(^Д^)/',
|
|
|
|
];
|
|
|
|
const errorEmoji = emojiArray[Math.floor(Math.random() * emojiArray.length)];
|
|
|
|
errorEmojiContainer.appendChild(document.createTextNode(errorEmoji));
|
|
|
|
</script>
|
|
|
|
|
|
|
|
{{ end }}
|