mirror of
https://github.com/dillonzq/LoveIt.git
synced 2024-11-25 16:26:36 +01:00
22 lines
849 B
HTML
22 lines
849 B
HTML
{{- define "title" }}
|
|
{{- T "pageNotFound" | printf "404 %s" }} | {{ .Site.Title -}}
|
|
{{- end -}}
|
|
|
|
{{- define "content" -}}
|
|
<div class="page" id="content-404">
|
|
<h1 id="error-emoji"></h1>
|
|
<p class="error-text">
|
|
{{- T "pageNotFoundText" -}}
|
|
<a href="{{ `/` | relLangURL }}" title="{{ T `backToHome` }}">↩︎</a>
|
|
</p>
|
|
</div>
|
|
<script>
|
|
var emojiArray = [
|
|
'\\(o_o)/', '(o^^)o', '(˚Δ˚)b', '(^-^*)', '(≥o≤)', '(^_^)b', '(·_·)',
|
|
'(=\'X\'=)', '(>_<)', '(;-;)', '\\(^Д^)/',
|
|
];
|
|
var errorEmoji = emojiArray[Math.floor(Math.random() * emojiArray.length)];
|
|
var errorEmojiContainer = document.getElementById('error-emoji');
|
|
errorEmojiContainer.appendChild(document.createTextNode(errorEmoji));
|
|
</script>
|
|
{{- end -}}
|