Compare commits

...
Sign in to create a new pull request.

1 commit

Author SHA1 Message Date
Angelo Stavrow
b7b106d9db
Do not create feed title for untitled posts 2021-04-23 11:30:21 -04:00

View file

@ -97,7 +97,11 @@ func ViewFeed(app *App, w http.ResponseWriter, req *http.Request) error {
var title, permalink string
for _, p := range *coll.Posts {
if p.Title.String != "" {
title = p.PlainDisplayTitle()
} else {
title = ""
}
permalink = fmt.Sprintf("%s%s", baseUrl, p.Slug.String)
feed.Items = append(feed.Items, &Item{
Id: fmt.Sprintf("%s%s", basePermalinkUrl, p.Slug.String),