Something went wrong. Try again.
my website built using Rust (stdweb) → .wasm ricky.codes
Something went wrong. Try again.
1234567891011121314151617181920212223242526#!/usr/bin/env bashset -euo pipefail
SITE_NAME="${1:-ricky.codes}"BASE_URL="https://${SITE_NAME}"TODAY_UTC="$(date -u +"%Y-%m-%d")"
cat > static/robots.txt <<EOFUser-agent: *Allow: /
Sitemap: $BASE_URL/sitemap.xmlEOF
cat > static/sitemap.xml <<EOF<?xml version="1.0" encoding="UTF-8"?><urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> <url> <loc>$BASE_URL/</loc> <lastmod>$TODAY_UTC</lastmod> <changefreq>weekly</changefreq> <priority>1.0</priority> </url></urlset>EOF