lugo/post-process.sh
Oliver Atkinson ed3428e164 Add QR code preview support
QR codes can now be generated for all pages with the post processing script
the HEAD of all the html now has an open graph image tage pointing to the QR code url
2024-07-10 10:44:05 -06:00

8 lines
177 B
Bash
Executable File

#!/bin/bash
cd public/
find -name *.html | while read FILE; do
URL="$(grep -oP '(?<="og:url" content=")(.*)(?=")' $FILE)"
qrencode $URL -o $(dirname $FILE)/qr.png
done