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:
parent
5458fc8e8d
commit
74cea901d6
2 changed files with 40 additions and 37 deletions
74
404.html
74
404.html
|
@ -1,41 +1,41 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<title>The page you were looking for doesn't exist (404)</title>
|
||||
<style type="text/css">
|
||||
body {
|
||||
background-color: #fff;
|
||||
color: #666;
|
||||
text-align: center;
|
||||
font-family: arial, sans-serif;
|
||||
}
|
||||
div.dialog {
|
||||
width: 25em;
|
||||
padding: 0 4em;
|
||||
margin: 4em auto 0 auto;
|
||||
border: 1px solid #ccc;
|
||||
border-right-color: #999;
|
||||
border-bottom-color: #999;
|
||||
}
|
||||
h1 {
|
||||
font-size: 100%;
|
||||
color: #f00;
|
||||
line-height: 1.5em;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<head>
|
||||
<title>The page you were looking for doesn't exist (404)</title>
|
||||
<style type="text/css">
|
||||
body {
|
||||
background-color: #fff;
|
||||
color: #666;
|
||||
text-align: center;
|
||||
font-family: arial, sans-serif;
|
||||
}
|
||||
div.dialog {
|
||||
width: 25em;
|
||||
padding: 0 4em;
|
||||
margin: 4em auto 0 auto;
|
||||
border: 1px solid #ccc;
|
||||
border-right-color: #999;
|
||||
border-bottom-color: #999;
|
||||
}
|
||||
h1 {
|
||||
font-size: 100%;
|
||||
color: #f00;
|
||||
line-height: 1.5em;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="dialog">
|
||||
<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>
|
||||
</div>
|
||||
<img
|
||||
src="/assets/images/404-acara.png"
|
||||
alt="A Ghost Acara wearing the 404 Shirt"
|
||||
title="Boo!~"
|
||||
width="300"
|
||||
height="300"
|
||||
/>
|
||||
</body>
|
||||
<body>
|
||||
<div class="dialog">
|
||||
<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>
|
||||
</div>
|
||||
<img
|
||||
src="/assets/images/404-acara.png"
|
||||
alt="A Ghost Acara wearing the 404 Shirt"
|
||||
title="Boo!~"
|
||||
width="300"
|
||||
height="300"
|
||||
/>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,2 +1,5 @@
|
|||
#!/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'
|
||||
|
|
Loading…
Reference in a new issue