all repos — homestead @ 33ce4a14d51c06946af9e8ce430f20495aca1592

Code for my website

generate sitemap and robots.txt

Alan Pearce
commit

33ce4a14d51c06946af9e8ce430f20495aca1592

parent

a6524cfaf56014289837cdc02150539fbf468348

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 }}