We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44ac9a5 commit 6951a21Copy full SHA for 6951a21
src/pages/publications.astro
@@ -12,7 +12,14 @@ if (!publications || publications.length === 0) {
12
}
13
14
// Get the publications data with error handling
15
-const publicationsData = publications?.[0]?.data?.publications || [];
+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
+});
23
24
// Featured PubMed IDs
25
const featuredPmids = [
0 commit comments