all repos — website @ a9337d346ca6d82bbe203d50b176af9b7c146db0

My website

generate sitemap and robots.txt

Alan Pearce
commit

a9337d346ca6d82bbe203d50b176af9b7c146db0

parent

ab5a866278bec429657b61bf0d0a370757b5e922

1 file changed, 6 insertions(+), 0 deletions(-)

changed files
A templates/robots.tmpl
@@ -0,0 +1,6 @@
+User-agent: * +Disallow: +{{- with .BaseURL }} +Host: {{ .Hostname }} +Sitemap: {{ .JoinPath "/sitemap.xml" }} +{{- end }}