diff --git a/Makefile b/Makefile index 4a78670..b6d5ff4 100644 --- a/Makefile +++ b/Makefile @@ -41,5 +41,11 @@ build: ${OPTIMIZED_IMAGES} --include robots.txt \ --blog \ --rss - #python ../shared-assets/pgp-sign.py $(wildcard _site/*.html) + python ../shared-assets/pgp-sign.py $(wildcard _site/*.html) + gpg \ + --armor \ + --output _site/assets/files/verify.sh.sig \ + --local-user papatutuwawa@polynom.me \ + --detach-sign \ + assets/files/verify.sh tar -czf blog.tar.gz _site diff --git a/assets/css/blog.css b/assets/css/blog.css index ffd3d03..d05c2eb 100644 --- a/assets/css/blog.css +++ b/assets/css/blog.css @@ -3,6 +3,14 @@ img { max-width: 800px; } +.profile-picture { + max-width: 200px; +} + +h1, h2, h3, h4 { + color: #9b59b6; +} + .post-list-item { display: block; max-width: 800px; @@ -11,8 +19,29 @@ img { .post { display: block; max-width: 800px; + + padding: 10px; + + font-size: 21px; +} + + +@media only screen and (max-width: 768px) { + .post { + /* A smaller font looks better on smaller devices */ + font-size: 19px; + + /* Otherwise the entire page overflows for some reason */ + width: 100%; + } } .post-title { color: #3498db; } + +code { + display: inline-block; + max-width: 100%; + overflow-y: auto; +} diff --git a/assets/files/verify.sh b/assets/files/verify.sh new file mode 100644 index 0000000..507c1c0 --- /dev/null +++ b/assets/files/verify.sh @@ -0,0 +1,18 @@ +#!/usr/bin/env bash +[[ -z "$1" ]] && echo "Usage: verify.sh " && exit 1 + +SIG=`mktemp` +RAW=`mktemp` + +CONTENT=$(curl --silent "$1") + +# Extract the signature +echo "$CONTENT" | awk '/-----BEGIN PGP SIGNATURE-----/{p=1};{if (p==1){a[NR]=$0}};/-----END PGP SIGNATURE-----/{for (i in a) print a[i]}' > "$SIG" +# "Re-create" the page content before the signing process +echo "$CONTENT" | awk '/-----BEGIN PGP SIGNATURE-----/{p=1;f=0};{if (p!=1){print $0}; if (p==1 && f==0) {print "%%%SIGNED_PAGES_PGP_SIGNATURE%%%"; f=1}};/-----END PGP SIGNATURE-----/{p=0}' > "$RAW" + +GPG_OUT=`gpg --verify "$SIG" "$RAW"` +RET=$? +rm "$SIG" "$RAW" + +exit "$RET" diff --git a/assets/img/raw/traefik-twitter-screenshot.jpg b/assets/img/raw/traefik-twitter-screenshot.jpg new file mode 100644 index 0000000..ad6f16c Binary files /dev/null and b/assets/img/raw/traefik-twitter-screenshot.jpg differ diff --git a/content/about.html b/content/about.html index a5fc3ec..5553ec8 100644 --- a/content/about.html +++ b/content/about.html @@ -28,5 +28,6 @@

About This Page

diff --git a/layout/page.html b/layout/page.html index d9458f3..bfc099a 100644 --- a/layout/page.html +++ b/layout/page.html @@ -1,4 +1,7 @@ + {{ title }} @@ -7,8 +10,9 @@ - - + + +

papatutuwawa@home:~$

diff --git a/layout/post.html b/layout/post.html index 129af5e..30c0c55 100644 --- a/layout/post.html +++ b/layout/post.html @@ -1,7 +1,15 @@ -
-
-

{{ title }}

+
+
+
+

{{ title }}

- {{ content }} -
+ {{ content }} + +
+ + If you have any questions or comments, then feel free to send me an email + (Preferably with GPG encryption to + {{ email_user }} [weird "a" with a circle] {{ email_domain }}. +
+