update
This commit is contained in:
6
main.ts
6
main.ts
@@ -35,6 +35,7 @@ async function getBlogEntries() {
|
||||
title: '',
|
||||
createdAt: '',
|
||||
updatedAt: '',
|
||||
teaser: `${ dom.querySelector('article').textContent.slice(0, 128) }...`,
|
||||
};
|
||||
const metaTags = dom.querySelectorAll('meta') as unknown as NodeListOf<HTMLMetaElement>;
|
||||
for (const metaTag of metaTags) {
|
||||
@@ -69,7 +70,7 @@ async function rss() {
|
||||
<title>djledda's blog</title>
|
||||
<description>djledda's personal blog</description>
|
||||
<link>${ HOST }/blog</link>
|
||||
<managingEditor>dan@djledda.net (Daniel Ledda)</managingEditor>
|
||||
<managingEditor>Daniel Ledda</managingEditor>
|
||||
<image>
|
||||
<title>djledda's blog</title>
|
||||
<url>${ HOST }/favicon.png</url>
|
||||
@@ -86,7 +87,8 @@ async function rss() {
|
||||
<title>${ article.title }</title>
|
||||
<link>${ HOST }/blog/${ article.slug }</link>
|
||||
<pubDate>${ new Date(article.createdAt).toUTCString() }</pubDate>
|
||||
<author>dan@djledda.net (Daniel Ledda)</author>
|
||||
<author>Daniel Ledda</author>
|
||||
<description>${ article.content }</description>
|
||||
<guid>${ article.guid }</guid>
|
||||
</item>
|
||||
`).join('')}
|
||||
|
||||
Reference in New Issue
Block a user