add support for robots.txt file

pull/2174/head
Anthony Woods 10 years ago
parent 311946900e
commit 196b7846cc
  1. 1
      pkg/cmd/web.go
  2. 2
      public/robots.txt

@ -33,6 +33,7 @@ func newMacaron() *macaron.Macaron {
mapStatic(m, "css", "css")
mapStatic(m, "img", "img")
mapStatic(m, "fonts", "fonts")
mapStatic(m, "robots.txt", "robots.txxt")
m.Use(macaron.Renderer(macaron.RenderOptions{
Directory: path.Join(setting.StaticRootPath, "views"),

@ -0,0 +1,2 @@
User-agent: *
Disallow: /
Loading…
Cancel
Save