@@ -11,11 +11,7 @@ export class RssFeedGenerator {
1111 const BASE_URL = "https://codecoolture.com" ;
1212
1313 const feed = new Feed ( {
14- author : {
15- name : "Sergio Álvarez" ,
16- 17- link : "https://codecoolture.com/about" ,
18- } ,
14+ author :
{ name :
"Sergio Álvarez" , email :
"[email protected] " , link :
"https://codecoolture.com/about" } , 1915 copyright : `All rights reserved. Sergio Álvarez. ${ new Date ( ) . getFullYear ( ) } ` ,
2016 description :
2117 "Articles and notes about software development. Written by Sergio Álvarez. Better code, one piece at a time." ,
@@ -40,18 +36,12 @@ export class RssFeedGenerator {
4036
4137 for ( const apiArticle of apiArticlesFromNewestToOldest ) {
4238 feed . addItem ( {
43- author : [
44- {
45- 46- link : "https://codecoolture.com/about" ,
47- name : "Sergio Álvarez" ,
48- } ,
49- ] ,
39+ author :
[ { email :
"[email protected] " , link :
"https://codecoolture.com/about" , name :
"Sergio Álvarez" } ] , 5040 title : apiArticle . title ,
5141 id : `${ BASE_URL } ${ apiArticle . url } ` ,
5242 link : `${ BASE_URL } ${ apiArticle . url } ` ,
5343 description : apiArticle . spoiler ?? undefined ,
54- content : marked ( apiArticle . content ) ,
44+ content : await marked ( apiArticle . content ) ,
5545 date : new Date ( apiArticle . date ) ,
5646 image : apiArticle . cover ?? undefined ,
5747 } ) ;
0 commit comments