Skip to content

Commit

Permalink
Make atom RSS feed titles slugs instead of dates
Browse files Browse the repository at this point in the history
RSS readers will already show a date, and the dates always looked kind
of weird anyway.
  • Loading branch information
brandur committed Oct 3, 2024
1 parent d1e92b1 commit 699f251
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.go
Original file line number Diff line number Diff line change
Expand Up @@ -2080,7 +2080,7 @@ func renderAtomFeed(ctx context.Context, c *modulir.Context, atoms []*Atom, atom
return true, err
}

title := atom.PublishedAt.Format("2006 / Jan 2 / 15:04 PST")
title := "Atom #" + atom.Slug
if atom.Title != nil {
title = *atom.Title
}
Expand Down

0 comments on commit 699f251

Please sign in to comment.