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