chore: feed updates

This commit is contained in:
Cory Dransfeldt 2023-09-08 09:00:04 -07:00
parent 70caf3eb21
commit d76c9f7351
No known key found for this signature in database
5 changed files with 29 additions and 6 deletions

View file

@ -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,
}

View file

@ -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