chore: feed updates
This commit is contained in:
parent
70caf3eb21
commit
d76c9f7351
5 changed files with 29 additions and 6 deletions
|
@ -17,6 +17,7 @@ module.exports = {
|
|||
return {
|
||||
title: entry.data?.title || entry.title,
|
||||
url: entry.url.includes('http') ? entry.url : new URL(entry.url, BASE_URL).toString(),
|
||||
content: entry.description,
|
||||
date,
|
||||
excerpt,
|
||||
}
|
||||
|
|
|
@ -14,6 +14,9 @@ module.exports = {
|
|||
mdToHtml: (content) => {
|
||||
return marked.parse(content)
|
||||
},
|
||||
btoa: (string) => {
|
||||
return btoa(string)
|
||||
},
|
||||
dashLower: (string) => string.replace(/\s+/g, '-').toLowerCase(),
|
||||
encodeAmp: (string) => {
|
||||
if (!string) return
|
||||
|
|
Reference in a new issue