RSS feed merged to main branch #1
@ -5,6 +5,7 @@
|
|||||||
export let description;
|
export let description;
|
||||||
export let published;
|
export let published;
|
||||||
export let author;
|
export let author;
|
||||||
|
export let guid;
|
||||||
const pubAgo = moment(published).fromNow();
|
const pubAgo = moment(published).fromNow();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@ -19,4 +20,5 @@
|
|||||||
</div>
|
</div>
|
||||||
<div>commited {pubAgo} by {@html author}</div>
|
<div>commited {pubAgo} by {@html author}</div>
|
||||||
<a class="hover:text-slate-400 underline" href={link}>view commit</a>
|
<a class="hover:text-slate-400 underline" href={link}>view commit</a>
|
||||||
|
<div class="text-xs text-slate-400">guid:{guid}</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -22,7 +22,8 @@
|
|||||||
link: item.querySelector('link')?.textContent,
|
link: item.querySelector('link')?.textContent,
|
||||||
description: item.querySelector('description')?.textContent,
|
description: item.querySelector('description')?.textContent,
|
||||||
published: item.querySelector('pubDate')?.textContent,
|
published: item.querySelector('pubDate')?.textContent,
|
||||||
author: item.querySelector('author')?.textContent
|
author: item.querySelector('author')?.textContent,
|
||||||
|
guid: item.querySelector('guid')?.textContent
|
||||||
}));
|
}));
|
||||||
feed = items;
|
feed = items;
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
Loading…
Reference in New Issue
Block a user