2020-01-31 15:53:04 +01:00
|
|
|
{{- define "title" }}
|
|
|
|
{{- T "pageNotFound" | printf "404 %s" }} | {{ .Site.Title -}}
|
|
|
|
{{- end -}}
|
2019-08-22 20:01:22 +02:00
|
|
|
|
2020-01-31 11:46:28 +01:00
|
|
|
{{- define "content" -}}
|
2019-08-02 10:16:59 +02:00
|
|
|
<div class="notfound">
|
2020-02-03 11:38:10 +01:00
|
|
|
<h1 id="error-emoji"></h1>
|
2020-01-31 11:46:28 +01:00
|
|
|
<p class="error-text">
|
2020-02-02 11:18:06 +01:00
|
|
|
{{- T "pageNotFoundText" -}}
|
|
|
|
<a href="{{ .Site.BaseURL }}" title="{{ T "backToHome" }}">↩︎</a>
|
2020-01-31 11:46:28 +01:00
|
|
|
</p>
|
2019-08-02 10:16:59 +02:00
|
|
|
</div>
|
|
|
|
<script>
|
2020-02-03 11:38:10 +01:00
|
|
|
const emojiArray = [
|
2019-08-02 10:16:59 +02:00
|
|
|
'\\(o_o)/', '(o^^)o', '(˚Δ˚)b', '(^-^*)', '(≥o≤)', '(^_^)b', '(·_·)',
|
|
|
|
'(=\'X\'=)', '(>_<)', '(;-;)', '\\(^Д^)/',
|
|
|
|
];
|
2020-02-03 11:38:10 +01:00
|
|
|
const errorEmoji = emojiArray[Math.floor(Math.random() * emojiArray.length)];
|
|
|
|
const errorEmojiContainer = document.getElementById('error-emoji');
|
2019-08-02 10:16:59 +02:00
|
|
|
errorEmojiContainer.appendChild(document.createTextNode(errorEmoji));
|
|
|
|
</script>
|
2020-01-31 11:46:28 +01:00
|
|
|
{{- end -}}
|