Repos / s4g / 38100bad81
commit 38100bad8101cb6f601d01cfed6b834bf1b63f86
Author: Nhân <hi@imnhan.com>
Date: Sun Aug 20 23:36:09 2023 +0700
less verbose output
diff --git a/main.go b/main.go
index 82713a2..5ab092b 100644
--- a/main.go
+++ b/main.go
@@ -219,7 +219,6 @@ func regenerate(fsys writablefs.FS) (site *SiteMetadata, err error) {
})
for _, a := range articles {
- fmt.Println(">", a.Path, "-", a.Title)
err := a.WriteHtmlFile(site, articlesInNav, articlesInFeed, startYear)
if err != nil {
return nil, fmt.Errorf("Article %s: %w", a.Path, err)
@@ -243,8 +242,8 @@ func regenerate(fsys writablefs.FS) (site *SiteMetadata, err error) {
}
for _, p := range redirects {
generatedFiles[p] = true
- fmt.Println("Generated", p)
}
+ fmt.Printf("Generated %d redirects\n", len(redirects))
DeleteOldGeneratedFiles(fsys, generatedFiles)
WriteManifest(fsys, generatedFiles)
diff --git a/redirects.go b/redirects.go
index 603a3bb..3c006c4 100644
--- a/redirects.go
+++ b/redirects.go
@@ -95,7 +95,6 @@ func generateRedirects(
panic(err)
}
- fmt.Printf("Redirect: %s -> %s\n", src, dests[i])
generated = append(generated, src)
}