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