this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at main 34 lines 784 B view raw
1<page> 2path: /feed.rss 3</page> 4 5<script setup lang="ts"> 6import RenderFeed from "@islands/feed" 7import type { FeedOptions, FeedItem } from "@islands/feed" 8import { fetchNotes } from "~/api/fetch-notes" 9 10const url = "https://apoena.dev" 11 12const options: FeedOptions = { 13 title: "Apoena's distracted mind", 14 description: "Where I write about what I read.", 15 id: url, 16 link: url, 17 language: "en", 18 image: "https://apoena.dev/pwa-512x512.png", 19 copyright: "No copyright, just don't forget me", 20} 21 22const notes = await fetchNotes() 23 24const items = notes.map<FeedItem>((note) => ({ 25 link: note.canonicalUrl, 26 date: new Date(note.publishedAt), 27 title: note.title, 28 content: note, 29})) 30</script> 31 32<template> 33 <RenderFeed format="feed" :options="options" :items="items" /> 34</template>