mirror of
https://github.com/withastro/astro.git
synced 2024-12-23 21:53:55 -05:00
33 lines
1.2 KiB
JavaScript
33 lines
1.2 KiB
JavaScript
|
export const title = 'My RSS feed';
|
||
|
export const description = 'This sure is a nice RSS feed';
|
||
|
export const site = 'https://example.com';
|
||
|
|
||
|
export const phpFeedItem = {
|
||
|
link: '/php',
|
||
|
title: 'Remember PHP?',
|
||
|
pubDate: '1994-05-03',
|
||
|
description:
|
||
|
'PHP is a general-purpose scripting language geared toward web development. It was originally created by Danish-Canadian programmer Rasmus Lerdorf in 1994.',
|
||
|
};
|
||
|
export const phpFeedItemWithContent = {
|
||
|
...phpFeedItem,
|
||
|
content: `<h1>${phpFeedItem.title}</h1><p>${phpFeedItem.description}</p>`,
|
||
|
};
|
||
|
export const phpFeedItemWithCustomData = {
|
||
|
...phpFeedItem,
|
||
|
customData: '<dc:creator><![CDATA[Buster Bluth]]></dc:creator>',
|
||
|
};
|
||
|
|
||
|
export const web1FeedItem = {
|
||
|
// Should support empty string as a URL (possible for homepage route)
|
||
|
link: '',
|
||
|
title: 'Web 1.0',
|
||
|
pubDate: '1997-05-03',
|
||
|
description:
|
||
|
'Web 1.0 is the term used for the earliest version of the Internet as it emerged from its origins with Defense Advanced Research Projects Agency (DARPA) and became, for the first time, a global network representing the future of digital communications.',
|
||
|
};
|
||
|
export const web1FeedItemWithContent = {
|
||
|
...web1FeedItem,
|
||
|
content: `<h1>${web1FeedItem.title}</h1><p>${web1FeedItem.description}</p>`,
|
||
|
};
|