LoveIt/layouts/404.html

17 lines
650 B
HTML
Raw Normal View History

2019-02-03 12:30:44 +01:00
{{ define "content" }}
<div class="notfound">
<h1 class="error-emoji"></h1>
<p class="error-text">/* 404 page not found. */</p>
2019-02-25 18:21:15 +01:00
<p class="error-link"><a href="{{ .Site.BaseURL }}">↑ Back to Home ↑</a></p>
2019-02-03 12:30:44 +01: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>
{{ end }}