File tree Expand file tree Collapse file tree 3 files changed +15
-6
lines changed Expand file tree Collapse file tree 3 files changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -27,4 +27,5 @@ pnpm-debug.log*
27
27
.obsidian /
28
28
29
29
# until i finish
30
+ yap-kitchen.md
30
31
ics-schedule-generator.md
Original file line number Diff line number Diff line change @@ -58,14 +58,14 @@ allPosts.sort(
58
58
</div >
59
59
<hr class =" custom-hr" />
60
60
<p >
61
- Here are the three latest articles I've published. You can find the
61
+ Here are the five latest articles I've published. You can find the
62
62
entire list of my writing <a href =" /blog" style =" font-size: 1em;"
63
63
>on the blog page</a
64
64
>.
65
65
</p >
66
66
<ul class =" blog-list" >
67
67
{
68
- allPosts .slice (0 , 3 ).map ((post ) => (
68
+ allPosts .slice (0 , 5 ).map ((post ) => (
69
69
<a href = { post .url } class = " blog-post-link" >
70
70
<li class = " blog-post-item" >
71
71
{ post .frontmatter .bestof && (
Original file line number Diff line number Diff line change 1
1
import rss , { pagesGlobToRssItems } from '@astrojs/rss' ;
2
2
3
3
export async function GET ( context ) {
4
+ const originalItems = await pagesGlobToRssItems (
5
+ import . meta. glob ( './blog/*.{md,mdx}' )
6
+ ) ;
7
+
8
+ const itemsWithAuthor = originalItems . map ( ( item ) => ( {
9
+ ...item ,
10
+ author : 'Andrew Moses' ,
11
+ } ) ) ;
12
+
4
13
return rss ( {
5
14
title : 'Andrew Moses' ,
6
- description : 'The personal website & blog of Andrew Moses, a Computer Science student at the University of Wisconsin-Madison.' ,
15
+ description :
16
+ 'The personal website & blog of Andrew Moses, a Computer Science student at the University of Wisconsin-Madison.' ,
7
17
site : context . site ,
8
- items : await pagesGlobToRssItems (
9
- import . meta. glob ( './blog/*.{md,mdx}' ) ,
10
- ) ,
18
+ items : itemsWithAuthor ,
11
19
stylesheet : '/rss/styles.xsl' ,
12
20
} ) ;
13
21
}
You can’t perform that action at this time.
0 commit comments