#!/usr/bin/env bash # Based on this: https://www.lostsaloon.com/technology/how-to-create-an-xml-sitemap-using-wget-and-shell-script/ # (https://web.archive.org/web/20231202193251/https://www.lostsaloon.com/technology/how-to-create-an-xml-sitemap-using-wget-and-shell-script/) (https://archive.ph/qtdMP) sitedomain=https://engl-webfolio.askiiart.net dir=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd) header='' echo $header >sitemap.xml find . -name "*.md" | while read -r item; do item="${item:2}" item="${item%.*}" echo ''${sitedomain}/${item}.html'' >>sitemap.xml done echo "" >> sitemap.xml