From 55a663293453a32eeecb0e72d4cf7df6b2d0ef37 Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Mon, 8 Feb 2016 08:03:32 +0000 Subject: [PATCH] fix archtypes --- browse/post.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/browse/post.go b/browse/post.go index 557de752..e2503999 100644 --- a/browse/post.go +++ b/browse/post.go @@ -56,7 +56,7 @@ func POST(w http.ResponseWriter, r *http.Request, c *config.Config) (int, error) archetype = strings.Replace(archetype, "archetypes", "", 1) archetype = strings.TrimPrefix(archetype, "/") archetype = strings.TrimSuffix(archetype, "/") - archetype = "archetypes/" + archetype + archetype = c.Path + "archetypes/" + archetype // Check if the archetype ending with .markdown exists if _, err := os.Stat(archetype + ".markdown"); err == nil {