From 79f9218c3405af4771638ae943af265dff05358a Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Sun, 12 May 2024 11:18:51 -0400 Subject: add IndexNow script --- process-static | 2 ++ 1 file changed, 2 insertions(+) (limited to 'process-static') diff --git a/process-static b/process-static index fae44c7a..81a55328 100755 --- a/process-static +++ b/process-static @@ -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 :::: - -- cgit v1.3.1