fix sitemap header

This commit is contained in:
prx 2021-09-29 21:28:39 +02:00
parent f0e9334cb9
commit e2c8918a49
1 changed files with 1 additions and 6 deletions

View File

@ -13,14 +13,9 @@ test $# -eq 2 || usage
ndd="$1"
# sitemap header
printf '%s\n' \
cat <<EOF
<?xml version="1.0" encoding="UTF-8"?>
<urlset
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd"
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
EOF
# list all pages in site_directory and print last mod time