From a9337d346ca6d82bbe203d50b176af9b7c146db0 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Wed, 5 Jun 2024 22:15:05 +0200 Subject: generate sitemap and robots.txt --- templates/robots.tmpl | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 templates/robots.tmpl (limited to 'templates') 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 }} -- cgit 1.4.1