Repos / s4g / 2058a754cf
commit 2058a754cf00ddb6c2a01bb85e513795ed453052
Author: Nhân <hi@imnhan.com>
Date:   Fri Jul 7 22:33:06 2023 +0700

    print more messages

diff --git a/main.go b/main.go
index 6ff70fc..d5d1826 100644
--- a/main.go
+++ b/main.go
@@ -85,20 +85,22 @@ func regenerate(fsys WritableFS) {
 		startYear = time.Now().Year()
 	}
 
-	fmt.Printf("Found %d articles:\n", len(articles))
 	for _, a := range articles {
 		fmt.Println(">", a.Path, "-", a.Title)
 		a.WriteHtmlFile(&site, articlesInNav, startYear)
 	}
+	fmt.Printf("Processed %d articles\n", len(articles))
 
 	if site.GenerateHome {
 		WriteHomePage(fsys, site, articlesInFeed, articlesInNav, startYear)
+		fmt.Println("Generated index.html")
 	}
 
 	fsys.WriteFile(
 		FEED_PATH,
 		generateFeed(site, articlesInFeed, site.HomePath+FEED_PATH),
 	)
+	fmt.Println("Generated", FEED_PATH)
 }
 
 type SiteMetadata struct {