diff options
| author | Daniel Micay <daniel.micay@grapheneos.org> | 2024-05-12 11:18:51 -0400 |
|---|---|---|
| committer | GrapheneOS <contact@grapheneos.org> | 2024-05-12 11:42:26 -0400 |
| commit | 79f9218c3405af4771638ae943af265dff05358a (patch) | |
| tree | 01ced19ca61bd3b895ed6666b905916cf34bf1ab /process-static | |
| parent | 19f8de4fabbf9e5a6f54a96cef935d43016a3268 (diff) | |
add IndexNow script
Diffstat (limited to 'process-static')
| -rwxr-xr-x | process-static | 2 |
1 files changed, 2 insertions, 0 deletions
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 :::: - |
