Atom feed for our EEG site

more

Changed files
+12 -3
+10 -1
aggregate_feeds.py
···
print(f"Total entries after sorting: {len(sorted_entries)}", file=sys.stderr)
return sorted_entries
+
def format_pubdate(pubdate):
+
# Format the date with short month (three-letter)
+
return pubdate.strftime('%d %b %Y %H:%M:%S')
+
def create_atom_feed(entries):
feed = Atom1Feed(
title="Atomic EEG",
···
)
for entry in entries:
+
# Format the date with short month name
+
formatted_date = format_pubdate(entry['pub_date'])
feed.add_item(
title=entry['title'],
link=entry['link'],
···
author_name=entry['author'],
pubdate=entry['pub_date'],
unique_id=entry['id'],
-
categories=[entry['feed_title']] # Use feed title as category for attribution
+
categories=[entry['feed_title']], # Use feed title as category for attribution
+
# Add formatted date as extra field
+
updateddate=entry['pub_date'],
+
formatted_date=formatted_date
)
return feed
+2 -2
index.html
···
// Create a timeline structure by year/month
const timeline = new Map();
const monthNames = [
-
'January', 'February', 'March', 'April', 'May', 'June',
-
'July', 'August', 'September', 'October', 'November', 'December'
+
'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
+
'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'
];
const shortMonthNames = [
'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',