web

A collection of scripts used to generate this website
git clone https://erai.gay/code/web/
Log | Files | Refs | LICENSE

commit 887dcd6dd2d222296cccf36408b04e02c8460545
parent e4115c1ae2c9e40ac34edfa03d6d6842e77535df
Author: erai <erai@omiltem.net>
Date:   Wed, 17 Apr 2024 20:32:31 -0400

remove stlye.css from critical chain

Diffstat:
MMakefile | 2+-
Mrender.sh | 3+--
2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile @@ -23,7 +23,7 @@ clean: .PHONY: all clean .SUFFIXES: -build/%.html: %.html render.sh +build/%.html: %.html render.sh css/style.css @mkdir -p $(dir $@) ./render.sh $< > $@ diff --git a/render.sh b/render.sh @@ -8,7 +8,6 @@ if [ $# -ne 1 ]; then fi title="asdf &mdash; Omiltem" -style="/css/style.css?t=$(date -r css/style.css +%s)" thumbnail="https://omiltem.net/about/pfp.jpg" description="" copyright="2024" @@ -34,8 +33,8 @@ cat << EOF <meta property="og:title" content="${title}"> <meta property="og:description" content="${description}"> <meta name="description" content="${description}"> - <link rel="stylesheet" href="${style}"> <link rel="icon" href="/favicon.png"> + <style>$(cat css/style.css)</style> $(sed -ne '/<head>/,/<\/head>/p' "$1" | sed -e '1d;$d') </head> <body>