Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
ORIGIN INVESTMENTS authored and ORIGIN INVESTMENTS committed Apr 10, 2024
1 parent 154fdb6 commit 987b0ae
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions .eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,9 @@ module.exports = function (eleventyConfig) {
eleventyConfig.addFilter('upcomingEvents', function(events) {
const currentDate = new Date();
const currentDateString = Number(currentDate.toISOString().slice(0,10).replace(/-/g, ''));

console.log("Current date string: ", currentDateString);

return events.filter(event => {
const filename = event.filePathStem.split('/').pop();
const eventDate = Number(filename.slice(0,8));

console.log("Event date: ", eventDate);

return eventDate >= currentDateString;
});
});
Expand Down

0 comments on commit 987b0ae

Please sign in to comment.