Compare commits
1 commit
develop
...
fix-feed-f
Author | SHA1 | Date | |
---|---|---|---|
|
b7b106d9db |
1 changed files with 5 additions and 1 deletions
6
feed.go
6
feed.go
|
@ -97,7 +97,11 @@ func ViewFeed(app *App, w http.ResponseWriter, req *http.Request) error {
|
||||||
|
|
||||||
var title, permalink string
|
var title, permalink string
|
||||||
for _, p := range *coll.Posts {
|
for _, p := range *coll.Posts {
|
||||||
title = p.PlainDisplayTitle()
|
if p.Title.String != "" {
|
||||||
|
title = p.PlainDisplayTitle()
|
||||||
|
} else {
|
||||||
|
title = ""
|
||||||
|
}
|
||||||
permalink = fmt.Sprintf("%s%s", baseUrl, p.Slug.String)
|
permalink = fmt.Sprintf("%s%s", baseUrl, p.Slug.String)
|
||||||
feed.Items = append(feed.Items, &Item{
|
feed.Items = append(feed.Items, &Item{
|
||||||
Id: fmt.Sprintf("%s%s", basePermalinkUrl, p.Slug.String),
|
Id: fmt.Sprintf("%s%s", basePermalinkUrl, p.Slug.String),
|
||||||
|
|
Loading…
Add table
Reference in a new issue