diff --git a/_components/footer.tsx b/_components/footer.tsx index a01ba58..2189efb 100644 --- a/_components/footer.tsx +++ b/_components/footer.tsx @@ -28,6 +28,13 @@ export default function({ comp }) { style={iconStyle} /> + + +

Copyright © 2023 Foster Hangdaan

Made with Lume, TypeScript and lots of .

diff --git a/_config.ts b/_config.ts index 956ea3d..6008324 100644 --- a/_config.ts +++ b/_config.ts @@ -2,8 +2,10 @@ import lume from "lume/mod.ts"; import jsx from "lume/plugins/jsx.ts"; import nav from "lume/plugins/nav.ts"; import sass from "lume/plugins/sass.ts"; +import feed from "lume/plugins/feed.ts"; const site = lume({ + location: new URL("https://www.fosterhangdaan.com/"), server: { port: 8080, }, @@ -16,5 +18,22 @@ site.copy("static", "."); site.use(jsx()); site.use(nav()); site.use(sass()); +site.use(feed({ + query: "type=post", + output: [ + "/blog/feed.rss", + "/blog/feed.json", + ], + info: { + title: "Foster Hangdaan's Blog", + description: "My thoughts and ideas.", + date: new Date(), + language: "en", + }, + items: { + title: "=title", + description: "=description", + } +})); export default site; diff --git a/blog/_data.yaml b/blog/_data.yaml new file mode 100644 index 0000000..0e8183b --- /dev/null +++ b/blog/_data.yaml @@ -0,0 +1,9 @@ +links: + - rel: alternate + href: /blog/feed.rss + type: application/atom+xml + title: Foster Hangdaan's Blog + - rel: alternate + href: /blog/feed.json + type: application/json + title: Foster Hangdaan's Blog diff --git a/blog/posts/_data.yaml b/blog/posts/_data.yaml index 8dd048c..e0e0750 100644 --- a/blog/posts/_data.yaml +++ b/blog/posts/_data.yaml @@ -1,4 +1,5 @@ layout: layouts/post.tsx +type: post author: name: Foster Hangdaan email: foster@hangdaan.email diff --git a/deno.lock b/deno.lock index 07d5f37..3b6057b 100644 Binary files a/deno.lock and b/deno.lock differ