diff options
author | Alan Pearce | 2024-06-05 22:15:05 +0200 |
---|---|---|
committer | Alan Pearce | 2024-06-05 22:15:05 +0200 |
commit | a9337d346ca6d82bbe203d50b176af9b7c146db0 (patch) | |
tree | 324818852995470cb4833bb6fe79dfead3d17957 /templates/robots.tmpl | |
parent | ab5a866278bec429657b61bf0d0a370757b5e922 (diff) | |
download | website-a9337d346ca6d82bbe203d50b176af9b7c146db0.tar.lz website-a9337d346ca6d82bbe203d50b176af9b7c146db0.tar.zst website-a9337d346ca6d82bbe203d50b176af9b7c146db0.zip |
generate sitemap and robots.txt
Diffstat (limited to 'templates/robots.tmpl')
-rw-r--r-- | templates/robots.tmpl | 6 |
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 }} |