From ebfb0155ac6a4fba93ebb846878ca211e9384226 Mon Sep 17 00:00:00 2001 From: horus_arch Date: Mon, 27 Jul 2015 22:24:09 +0200 Subject: Initial commit. --- templates/robots.tmpl | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 templates/robots.tmpl (limited to 'templates/robots.tmpl') diff --git a/templates/robots.tmpl b/templates/robots.tmpl new file mode 100644 index 0000000..cea822a --- /dev/null +++ b/templates/robots.tmpl @@ -0,0 +1,7 @@ +location = /robots.txt { + return 200 "User-agent: * + {{if .RobotsDisallow}}{{range .RobotsDisallow}}Disallow: {{.}} + {{end}}{{end}} + {{if .RobotsAllow}}{{range .RobotsAllow}}Allow: {{.}} + {{end}}{{end}}"; + } -- cgit v1.2.3