diff options
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -101,6 +101,10 @@ func handleHome(pathname string) func(http.ResponseWriter, *http.Request) { if err == nil { home.Stats = append(home.Stats, count("Last 30 days", len(last_month))) } + last_year, err := EntriesSince(now.AddDate(0, 0, -365)) + if err == nil { + home.Stats = append(home.Stats, count("Last 365 days", len(last_year))) + } total, err := CountEntries() if err == nil { home.Stats = append(home.Stats, count("All time", int(total))) |