Commit 196b7846 by Anthony Woods

add support for robots.txt file

parent 31194690
...@@ -33,6 +33,7 @@ func newMacaron() *macaron.Macaron { ...@@ -33,6 +33,7 @@ func newMacaron() *macaron.Macaron {
mapStatic(m, "css", "css") mapStatic(m, "css", "css")
mapStatic(m, "img", "img") mapStatic(m, "img", "img")
mapStatic(m, "fonts", "fonts") mapStatic(m, "fonts", "fonts")
mapStatic(m, "robots.txt", "robots.txxt")
m.Use(macaron.Renderer(macaron.RenderOptions{ m.Use(macaron.Renderer(macaron.RenderOptions{
Directory: path.Join(setting.StaticRootPath, "views"), Directory: path.Join(setting.StaticRootPath, "views"),
......
User-agent: *
Disallow: /
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment