about summary refs log tree commit diff stats
path: root/templates
diff options
context:
space:
mode:
authorAlan Pearce2024-06-05 22:15:05 +0200
committerAlan Pearce2024-06-05 22:15:05 +0200
commita9337d346ca6d82bbe203d50b176af9b7c146db0 (patch)
tree324818852995470cb4833bb6fe79dfead3d17957 /templates
parentab5a866278bec429657b61bf0d0a370757b5e922 (diff)
downloadwebsite-a9337d346ca6d82bbe203d50b176af9b7c146db0.tar.lz
website-a9337d346ca6d82bbe203d50b176af9b7c146db0.tar.zst
website-a9337d346ca6d82bbe203d50b176af9b7c146db0.zip
generate sitemap and robots.txt
Diffstat (limited to 'templates')
-rw-r--r--templates/robots.tmpl6
1 files changed, 6 insertions, 0 deletions
diff --git a/templates/robots.tmpl b/templates/robots.tmpl
new file mode 100644
index 0000000..8ccad4d
--- /dev/null
+++ b/templates/robots.tmpl
@@ -0,0 +1,6 @@
+User-agent: *
+Disallow:
+{{- with .BaseURL }}
+Host: {{ .Hostname }}
+Sitemap: {{ .JoinPath "/sitemap.xml" }}
+{{- end }}