LoveIt/layouts/404.html

26 lines
919 B
HTML
Raw Normal View History

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