summaryrefslogtreecommitdiff
path: root/sitemap.sh
diff options
context:
space:
mode:
Diffstat (limited to 'sitemap.sh')
-rwxr-xr-xsitemap.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/sitemap.sh b/sitemap.sh
index ddd6358..c6cfc38 100755
--- a/sitemap.sh
+++ b/sitemap.sh
@@ -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>;" ;