diff --git a/layouts/partials/head.html b/layouts/partials/head.html index b5f73cf..d45dddf 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -14,7 +14,8 @@ - + + {{ if isset .Params "tags" }} {{ end -}} diff --git a/post-process.sh b/post-process.sh new file mode 100755 index 0000000..b958075 --- /dev/null +++ b/post-process.sh @@ -0,0 +1,7 @@ +#!/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