Use Prettier on the output we deploy

Just as like, an extra little step in case people decide to View Source
our blog. Doesn't really matter! But hey, feels polite all else equal!

(The main thing I noticed is the indentation, which is always a mess in
templating systems like Liquid with injecting content into layouts.)
This commit is contained in:
Emi Matchu 2024-09-13 20:24:04 -07:00
parent 5458fc8e8d
commit 74cea901d6
2 changed files with 40 additions and 37 deletions

View file

@ -1,41 +1,41 @@
<!doctype html> <!doctype html>
<html> <html>
<head> <head>
<title>The page you were looking for doesn't exist (404)</title> <title>The page you were looking for doesn't exist (404)</title>
<style type="text/css"> <style type="text/css">
body { body {
background-color: #fff; background-color: #fff;
color: #666; color: #666;
text-align: center; text-align: center;
font-family: arial, sans-serif; font-family: arial, sans-serif;
} }
div.dialog { div.dialog {
width: 25em; width: 25em;
padding: 0 4em; padding: 0 4em;
margin: 4em auto 0 auto; margin: 4em auto 0 auto;
border: 1px solid #ccc; border: 1px solid #ccc;
border-right-color: #999; border-right-color: #999;
border-bottom-color: #999; border-bottom-color: #999;
} }
h1 { h1 {
font-size: 100%; font-size: 100%;
color: #f00; color: #f00;
line-height: 1.5em; line-height: 1.5em;
} }
</style> </style>
</head> </head>
<body> <body>
<div class="dialog"> <div class="dialog">
<h1>The page you were looking for doesn't exist.</h1> <h1>The page you were looking for doesn't exist.</h1>
<p>You may have mistyped the address or the page may have moved.</p> <p>You may have mistyped the address or the page may have moved.</p>
</div> </div>
<img <img
src="/assets/images/404-acara.png" src="/assets/images/404-acara.png"
alt="A Ghost Acara wearing the 404 Shirt" alt="A Ghost Acara wearing the 404 Shirt"
title="Boo!~" title="Boo!~"
width="300" width="300"
height="300" height="300"
/> />
</body> </body>
</html> </html>

View file

@ -1,2 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -e
bundle exec jekyll build
npx prettier@3.3.3 -w --ignore-path= _site
sftp blog.openneo.net <<< 'put -r _site/* /srv/blog.openneo.net' sftp blog.openneo.net <<< 'put -r _site/* /srv/blog.openneo.net'