-
Notifications
You must be signed in to change notification settings - Fork 221
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
1,041 additions
and
2,152 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,3 +18,4 @@ pnpm-debug.log* | |
|
||
# macOS-specific files | ||
.DS_Store | ||
.astro |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
/// <reference path="../.astro/types.d.ts" /> | ||
/// <reference types="astro/client" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,10 @@ | ||
import rss from '@astrojs/rss'; | ||
|
||
const eventImportResult = import.meta.glob('./**/*.md', { eager: true }); | ||
const events = Object.values(eventImportResult); | ||
import rss, { pagesGlobToRssItems } from '@astrojs/rss'; | ||
|
||
export const get = () => | ||
rss({ | ||
title: 'nf-core: Events', | ||
description: 'Details of past and future nf-core meetups.', | ||
site: import.meta.env.SITE, | ||
stylesheet: '/rss/styles.xsl', | ||
items: events.map((event) => ({ | ||
link: event.url, | ||
title: event.frontmatter.title, | ||
// TODO: FIX WITH PROPER FRONTMATTER | ||
// date('r', $event['start_ts']) | ||
// pubDate: event.frontmatter.start_ts, | ||
})), | ||
items: pagesGlobToRssItems(import.meta.glob('./events/*.{md,mdx}')), | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { vitePreprocess } from '@astrojs/svelte'; | ||
|
||
export default { | ||
preprocess: vitePreprocess(), | ||
}; |