diff options
Diffstat (limited to 'internal/builder/builder.go')
-rw-r--r-- | internal/builder/builder.go | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/internal/builder/builder.go b/internal/builder/builder.go index 933679d..d2d86a6 100644 --- a/internal/builder/builder.go +++ b/internal/builder/builder.go @@ -137,7 +137,12 @@ func build(outDir string, config config.Config) (*Result, error) { return nil, errors.WithMessage(err, "could not create directory for tags") } log.Debug("rendering tags list") - if err := renderToFile(templates.TagsPage(config, "tags", mapset.Sorted(tags), "/tags"), publicDir, "tags", "index.html"); err != nil { + if err := renderToFile( + templates.TagsPage(config, "tags", mapset.Sorted(tags), "/tags"), + publicDir, + "tags", + "index.html", + ); err != nil { return nil, err } sitemap.AddPath("/tags/", lastMod) @@ -154,7 +159,13 @@ func build(outDir string, config config.Config) (*Result, error) { } log.Debug("rendering tags page", "tag", tag) url := "/tags/" + tag - if err := renderToFile(templates.TagPage(config, tag, matchingPosts, url), publicDir, "tags", tag, "index.html"); err != nil { + if err := renderToFile( + templates.TagPage(config, tag, matchingPosts, url), + publicDir, + "tags", + tag, + "index.html", + ); err != nil { return nil, err } sitemap.AddPath(url, matchingPosts[0].Date) @@ -271,5 +282,6 @@ func BuildSite(ioConfig IOConfig) (*Result, error) { } loadCSS() + return build(ioConfig.Destination, *config) } |