ed3428e164
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
8 lines
177 B
Bash
Executable File
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
|