Move custom theme layouts to this repo

This commit is contained in:
Anthony Wang 2021-12-28 12:42:06 -06:00
parent ba66f962d5
commit 55952c54cf
Signed by: a
GPG key ID: BC96B00AEC5F2D76
2 changed files with 25 additions and 0 deletions

22
layouts/404.html Normal file
View file

@ -0,0 +1,22 @@
{{ define "main"}}
<div class="text-404">
<h1 class="error-emoji"></h1>
<h2>
404 ... You've reached an imaginary page!
</h2>
<h3>
Please <a href="https://old.reddit.com/r/learnmath/comments/s4rt0/why_does_multiplying_by_i_correspond_to_90_degree/">rotate your computer 90 degrees</a> and try again.
</h3>
</div>
<script>
const errorEmojiContainer = document.getElementsByClassName('error-emoji')[0];
const emojiArray = [
'\\(o_o)/', '(o^^)o', '(˚Δ˚)b', '(^-^*)', '(≥o≤)', '(^_^)b', '(·_·)',
'(=\'X\'=)', '(>_<)', '(;-;)', '\\(^Д^)/',
];
const errorEmoji = emojiArray[Math.floor(Math.random() * emojiArray.length)];
errorEmojiContainer.appendChild(document.createTextNode(errorEmoji));
</script>
{{ end }}

View file

@ -0,0 +1,3 @@
<footer class="footer">
<span>{{ .Site.Params.Footer }}</span>
</footer>