diff options
| author | EuAndreh <eu@euandre.org> | 2025-04-29 19:23:58 -0300 |
|---|---|---|
| committer | EuAndreh <eu@euandre.org> | 2025-04-29 19:23:58 -0300 |
| commit | 2dcdd72d693f9a886a2751ab65fc0e85c04d1e1a (patch) | |
| tree | 98828e47ff4cccf4b480b77018a5f121097ea5c4 /src/sitemap | |
| parent | src/{conf,indexbody}: Replace $feedicon_url_prefix with $feedicon_url (diff) | |
| download | mkwb-2dcdd72d693f9a886a2751ab65fc0e85c04d1e1a.tar.gz mkwb-2dcdd72d693f9a886a2751ab65fc0e85c04d1e1a.tar.xz | |
Add "mapentry" and "sitemap" subcommands
Diffstat (limited to 'src/sitemap')
| -rwxr-xr-x | src/sitemap | 22 |
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 |
