alexw.nyc

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.alexwennerberg.com/alexw.nyc
Log | Files | Refs | README

commit 18fdef41b4f24ee4358b7d2a595c6c8c8b1c2b8d
parent f5f99464bb861e24817c63b481d7226bf6fb1341
Author: alex wennerberg <alex@alexwennerberg.com>
Date:   Sun,  9 Apr 2023 19:00:23 -0400

add title

doesnt work very well, going to try a new system somehow

Diffstat:
Mbuild.sh | 3++-
Mtemplates/header.html | 2+-
2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/build.sh b/build.sh @@ -18,7 +18,8 @@ for file in $(find $srcdir); do fn=$outdir/$realpath mkdir -p `dirname $fn` if [[ $file == *.html ]]; then - cat templates/header.html > $fn + title=`basename $file` + cat templates/header.html | sed -e "s/{title}/${title}/" > $fn cat $file >> $fn updated=`git log -1 --pretty="format:%ci" $file | awk '{print $1}'` cat templates/footer.html | sed -e "s/{updated}/$updated/" >> $fn diff --git a/templates/header.html b/templates/header.html @@ -6,7 +6,7 @@ <link rel="icon" type="image/png" href="https://alexw.nyc/icon.png"> - <title>alexw.nyc</title> + <title>alexw.nyc -- {title}</title> </head> <header> <table><tr><td><a href="/"><img src="/icon.png" width=60 /></a></td>