garbash-www

archive of ~alex garbash.com page
git clone git://git.alexkarle.com.com/garbash-www
Log | Files | Refs | README | LICENSE

commit 8fc5c8e7aa3361dd78741e6bfe4e9855013ab9df (patch)
parent 34be727f3b7381a06ebde31563dbcea05d39e8a7
Author: alex <alex@garbash.com>
Date:   Sun, 24 Oct 2021 23:51:07 -0400

build: Add some default styling to the built HTML

This was heavily inspired, but not 100% taken verbatim, from
https://www.swyx.io/css-100-bytes/. It's amazing what a lil CSS can
do!

Diffstat:
Mbin/buildpage | 10++++++++++
Mroot-index.md | 18+++++++++---------
2 files changed, 19 insertions(+), 9 deletions(-)

diff --git a/bin/buildpage b/bin/buildpage @@ -15,6 +15,16 @@ cat <<EOM <head> <meta charset="utf-8"/> <meta name="viewport" content="width=device-width,initial-scale=1"> +<!-- Inspired by https://www.swyx.io/css-100-bytes/ --> +<style> +html { + max-width: 70ch; + padding: 3em 1em; + margin: auto; + font-size: 1em; + font-family: sans-serif; +} +</style> EOM # Print the title, if we find it in the frontmatter diff --git a/root-index.md b/root-index.md @@ -5,15 +5,15 @@ title: garbash.com Welcome ======= ``` - . - '). - /;(( - .'____`. - | g | create - | a | something - | r | worth - | bash | rewriting - `-____-' + . + '). + /;(( +.'____`. +| g | create +| a | something +| r | worth +| bash | rewriting +`-____-' ``` garbash is a budding invite-only [tilde](https://tildeverse.org)