all repos — homestead @ d6344ad88c618984fabc4d59109813d2a746d97c

Code for my website

refactor/format

Alan Pearce
commit

d6344ad88c618984fabc4d59109813d2a746d97c

parent

7f3db728223fcc46d633a030cc89f9b130b5db41

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) }