diff --git a/main.go b/main.go index 0654a1e..ae97fb1 100644 --- a/main.go +++ b/main.go @@ -23,7 +23,6 @@ import ( type Summary struct { PostTypes map[string]string Name string - Published string Items []microsub.Item Grouped map[string][]microsub.Item } @@ -59,7 +58,7 @@ func main() { log.Fatal(err) } - monday := now.With(time.Now()).Monday().AddDate(0, 0, -10) + monday := now.With(time.Now()).Monday().AddDate(0, 0, -7) items = filterEntriesAfter(items, monday) summary := getSummary(monday, items) @@ -85,7 +84,6 @@ func getSummary(monday time.Time, items []microsub.Item) Summary { } summary := Summary{ Name: fmt.Sprintf("Digest for Week %d-%d", week, year), - Published: monday.AddDate(0, 0, 7).Format("2 Jan 2006"), Items: items, Grouped: grouped, } diff --git a/templates/weekly.html b/templates/weekly.html index 0d73ec2..fd6e663 100644 --- a/templates/weekly.html +++ b/templates/weekly.html @@ -9,6 +9,14 @@ {{ range .LikeOf }}
  • {{ . }}
  • {{ end }} + {{ else if eq $k "repost-of" }} + {{ range .RepostOf }} +
  • {{ . }}
  • + {{ end }} + {{ else if eq $k "in-reply-to" }} + {{ range .InReplyTo }} +
  • {{ . }}
  • + {{ end }} {{ else }} {{ if .Checkin }}
  • Checkin at {{ .Checkin.Name }} in {{ .Checkin.Locality }}, {{ .Checkin.Region }}