diff options
-rw-r--r-- | plain-header (renamed from simple-header) | 0 | ||||
-rwxr-xr-x | sitemap.sh | 2 |
2 files changed, 1 insertions, 1 deletions
diff --git a/simple-header b/plain-header index 65cdda0..65cdda0 100644 --- a/simple-header +++ b/plain-header @@ -43,7 +43,7 @@ echo '<?xml version="1.0" encoding="UTF-8"?> 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">' > $2 -echo "$(find -L $1 -type d | sort | sed -e 's;^\./;;' -e '\;/\(css\|error\|favicon\|fonts\|js\|media\);d' -e 's;$;/;')" | \ +echo "$(find -L $1 -type d | sort | sed -e 's;^\./;;' -e '\;/\(.git\|css\|error\|favicon\|fonts\|js\|media\);d' -e 's;$;/;')" | \ while IFS='' read -r data ; do DATE=$(grep "last-modified" ${data}/index.html | cut -f 4 -d \" | sed 's/ /T/' ) ; urlencode "$data" | sed -e 's;^;<url><loc>https://;' -e "s;$;</loc><lastmod>${DATE}</lastmod></url>;" ; |