all repos — website @ becede4bfead952239b9cf7c8eb9fb96d01534ec

My website

refactor/format

Alan Pearce
commit

becede4bfead952239b9cf7c8eb9fb96d01534ec

parent

4f5ca39f582d83ded08a6e1cbf1a195141623b1c

1 file changed, 14 insertions(+), 2 deletions(-)

changed files
M internal/builder/builder.gointernal/builder/builder.go
@@ -137,7 +137,12 @@ if err := mkdirp(publicDir, "tags"); err != nil {
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 @@ return nil, errors.WithMessage(err, "could not create directory")
} 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 @@ }
} loadCSS() + return build(ioConfig.Destination, *config) }