feeds: fix articles Link(s)

This commit is contained in:
2022-08-27 22:05:01 +02:00
parent 684859c197
commit 1ddc71f64b
3 changed files with 13 additions and 2 deletions
+2 -1
View File
@@ -2,6 +2,7 @@ package rss
import (
"git.phc.dm.unipi.it/phc/website/articles"
"git.phc.dm.unipi.it/phc/website/config"
"github.com/gorilla/feeds"
)
@@ -22,7 +23,7 @@ func GenerateRssFeed(entries []*articles.Article, title string, link string, des
&feeds.Item{
Id: entry.Id,
Title: entry.Title,
Link: &feeds.Link{Href: entry.ArticlePath},
Link: &feeds.Link{Href: config.BaseUrl + "/guide" + entry.Id},
Description: entry.Description,
Created: entry.PublishDate,
})