diff options
author | Anthony Wang | 2021-12-28 12:42:06 -0600 |
---|---|---|
committer | Anthony Wang | 2021-12-28 12:42:06 -0600 |
commit | 55952c54cfde13268377fa34df701a8567ea8f65 (patch) | |
tree | 6b2d36d79ad8a3f9aed9adbf3de0b84f1fb3dad8 /layouts | |
parent | ba66f962d5ba60fab75c30580cfb2739323516c6 (diff) |
Move custom theme layouts to this repo
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/404.html | 22 | ||||
-rw-r--r-- | layouts/partials/footer.html | 3 |
2 files changed, 25 insertions, 0 deletions
diff --git a/layouts/404.html b/layouts/404.html new file mode 100644 index 0000000..91056b7 --- /dev/null +++ b/layouts/404.html @@ -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 }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html new file mode 100644 index 0000000..6b89601 --- /dev/null +++ b/layouts/partials/footer.html @@ -0,0 +1,3 @@ +<footer class="footer"> + <span>{{ .Site.Params.Footer }}</span> +</footer> |