about summary refs log tree commit diff stats
path: root/internal/builder/builder.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/builder/builder.go')
-rw-r--r--internal/builder/builder.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/internal/builder/builder.go b/internal/builder/builder.go
index 68eec14..df66f87 100644
--- a/internal/builder/builder.go
+++ b/internal/builder/builder.go
@@ -77,7 +77,7 @@ func build(ioConfig *IOConfig, config *config.Config, log *log.Logger) (*Result,
 	log.Debug("rendering tags list")
 	if err := storage.RenderToFile(
 		templates.TagsPage(config, "tags", mapset.Sorted(tags), "/tags"),
-		path.Join("tags", "index.html"),
+		"tags/",
 	); err != nil {
 		return nil, err
 	}
@@ -94,7 +94,7 @@ func build(ioConfig *IOConfig, config *config.Config, log *log.Logger) (*Result,
 		url := "/tags/" + tag
 		if err := storage.RenderToFile(
 			templates.TagPage(config, tag, matchingPosts, url),
-			path.Join("tags", tag, "index.html"),
+			path.Join("tags", tag)+"/",
 		); err != nil {
 			return nil, err
 		}
@@ -118,7 +118,7 @@ func build(ioConfig *IOConfig, config *config.Config, log *log.Logger) (*Result,
 	log.Debug("rendering list page")
 	if err := storage.RenderToFile(
 		templates.ListPage(config, posts, "/post"),
-		path.Join("post", "index.html"),
+		"post/",
 	); err != nil {
 		return nil, err
 	}
@@ -160,14 +160,14 @@ func build(ioConfig *IOConfig, config *config.Config, log *log.Logger) (*Result,
 	if err != nil {
 		return nil, err
 	}
-	if err := storage.RenderToFile(templates.Homepage(config, posts, content), "index.html"); err != nil {
+	if err := storage.RenderToFile(templates.Homepage(config, posts, content), "/"); err != nil {
 		return nil, err
 	}
 	// it would be nice to set LastMod here, but using the latest post
 	// date would be wrong as the homepage has its own content file
 	// without a date, which could be newer
 	sitemap.AddPath("/", time.Time{})
-	f, err := storage.Open("index.html")
+	f, err := storage.Open("/")
 	if err != nil {
 		return nil, err
 	}