summaryrefslogtreecommitdiff
path: root/src/sitemap
diff options
context:
space:
mode:
Diffstat (limited to 'src/sitemap')
-rwxr-xr-xsrc/sitemap22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/sitemap b/src/sitemap
new file mode 100755
index 0000000..48be5ea
--- /dev/null
+++ b/src/sitemap
@@ -0,0 +1,22 @@
+#!/bin/sh
+set -euo pipefail
+
+
+opening() {
+ 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">
+EOF
+}
+
+closing() {
+ echo '</urlset>'
+}
+
+
+opening
+cat "$@"
+closing