Remove pug in favor of a few posthtml plugins

Pug caused no end of issues and is frankly far too heavy-weight for
what I want.

As it turns out, there are posthtml plugins to do everything pug did
for me, so it's getting kicked out.
This commit is contained in:
Tristan Daniël Maat 2021-04-11 00:32:26 +01:00
parent 144e52df2b
commit db64e511d0
Signed by: tlater
GPG key ID: 49670FD774E43268
16 changed files with 756 additions and 1554 deletions

65
src/mail.html Normal file
View file

@ -0,0 +1,65 @@
<extends src="./lib/html/base.html">
<block name="content">
<h1 class="head-line">Contact Me</h1>
<div class="row">
<div class="col-md-6">
<form id="sendmail" role="form" action="mail.html" method="post">
<div class="form-group">
<label div="control-label" for="mail">Email address</label>
<input
id="mail"
class="form-control"
type="email"
placeholder="Your address"
name="mail"
required
/>
</div>
<div class="form-group">
<label div="control-label" for="subject">Subject</label>
<input
id="subject"
class="form-control"
type="text"
placeholder="E.g. There's a typo on your home page!"
name="subject"
autocomplete="off"
required
/>
</div>
<div class="form-group">
<label div="control-label" for="message">Message</label>
<textarea
id="message"
class="form-control"
type="text"
rows="6"
name="message"
autocomplete="off"
required
></textarea>
</div>
<button class="btn btn-primary" type="submit" form="sendmail">
Send
</button>
</form>
</div>
<div class="col-md-6">
<markdown>
Any messages you enter here are directly forwarded to me. I aim to
respond within a day.
Don't be upset about the form, I want to avoid the spam
publishing your email address brings with it... And minimize
the amount of mail that doesn't reach me, this form is an
exception in all my spam filters, you see ;)
</markdown>
</div>
</div>
</block>
</extends>