Commit 1282da52 by Torkel Ödegaard

Merge pull request #2750 from elliot/patch-1

Fixed 404 error for robots.txt
parents 2b95cd50 10c099a5
...@@ -33,7 +33,7 @@ func newMacaron() *macaron.Macaron { ...@@ -33,7 +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") mapStatic(m, "robots.txt", "robots.txt")
m.Use(macaron.Renderer(macaron.RenderOptions{ m.Use(macaron.Renderer(macaron.RenderOptions{
Directory: path.Join(setting.StaticRootPath, "views"), Directory: path.Join(setting.StaticRootPath, "views"),
......
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