add IndexNow script

This commit is contained in:
Daniel Micay
2024-05-12 11:18:51 -04:00
committed by GrapheneOS
parent 19f8de4fab
commit 79f9218c34
3 changed files with 38 additions and 0 deletions

View File

@@ -92,5 +92,7 @@ for file in static-tmp/**/*.@(atom|xml); do
xmllint --noblanks "$file" --output "$file"
done
[[ -f indexnow-key.txt ]] && index_now_key="$(cat indexnow-key.txt)" && echo "$index_now_key" > "static-tmp/$index_now_key.txt"
find static-tmp -regex '.+\.\(atom\|css\|html\|ico\|js\|json\|mjs\|pdf\|svg\|txt\|webmanifest\|xml\)' |
parallel -q ::: brotli zopfli :::: -