Skip to content

Commit 6951a21

Browse files
committed
filter out publications before july 2010 (start of saezlab)
1 parent 44ac9a5 commit 6951a21

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/pages/publications.astro

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,14 @@ if (!publications || publications.length === 0) {
1212
}
1313
1414
// Get the publications data with error handling
15-
const publicationsData = publications?.[0]?.data?.publications || [];
15+
const allPublications = publications?.[0]?.data?.publications || [];
16+
17+
// Filter publications to only include those after July 2010
18+
const publicationsData = allPublications.filter(pub => {
19+
if (!pub.date) return false;
20+
// Filter publications after July 2010 (2010-07-01)
21+
return pub.date > '2010-07-01';
22+
});
1623
1724
// Featured PubMed IDs
1825
const featuredPmids = [

0 commit comments

Comments
 (0)