Revert "add date for each feed entry's link, to match gemlog specs."
This reverts commit e68b88405f.
Reverting because it creates huge amounts of visual clutter and redundancy for
actual readers, as there are many entries per day (unlike a normal single
gemlog) with a header separating each day.
This commit is contained in:
+3
-4
@@ -142,16 +142,15 @@ func (d *FullData) WriteFeed(dataPath string) error {
|
|||||||
for _, entry := range pe.Entries {
|
for _, entry := range pe.Entries {
|
||||||
// get just the date it was published
|
// get just the date it was published
|
||||||
pub := toLocalDay(entry.Published)
|
pub := toLocalDay(entry.Published)
|
||||||
formattedPubDay := entry.Published.Format("2006-01-02")
|
|
||||||
if pub.Before(curDay) {
|
if pub.Before(curDay) {
|
||||||
curDay = pub
|
curDay = pub
|
||||||
rawPage += fmt.Sprintf("\n\n## %s\n\n", formattedPubDay)
|
rawPage += fmt.Sprintf("\n\n## %s\n\n", curDay.Format("2006-01-02"))
|
||||||
}
|
}
|
||||||
|
|
||||||
if entry.Title == "" {
|
if entry.Title == "" {
|
||||||
rawPage += fmt.Sprintf("=> %s %s %s\n", entry.URL, formattedPubDay, entry.Prefix)
|
rawPage += fmt.Sprintf("=> %s %s\n", entry.URL, entry.Prefix)
|
||||||
} else {
|
} else {
|
||||||
rawPage += fmt.Sprintf("=> %s %s %s — %s\n", entry.URL, formattedPubDay, entry.Prefix, entry.Title)
|
rawPage += fmt.Sprintf("=> %s %s — %s\n", entry.URL, entry.Prefix, entry.Title)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user