diff --git a/news.njk b/news.njk index 2e5c938..b6fd6f6 100644 --- a/news.njk +++ b/news.njk @@ -4,322 +4,395 @@ title: News Feed permalink: /news/ withSidebar: true --- -
+

News Feed

Aggregated content from my favorite feeds

- {% if newsActivity.lastUpdated %} -

- Last updated: {{ newsActivity.lastUpdated | date("PPpp") }} +

+ Last updated: +

- {% endif %}
- {# View Mode and Filter Controls #} -
- {# View Mode Buttons #} -
- - - -
- - {# Feed Filter Dropdown #} - {% if newsActivity.feeds.length > 1 %} -
- - - - -
- {% endif %} + {# Loading State #} +
+ + + + +

Loading news...

- {# Stats Bar #} - {% if newsActivity.status %} -
-
- Feeds: - {{ newsActivity.status.stats.feedsCount }} -
-
- Items: - {{ newsActivity.status.stats.itemsCount }} -
- {% if newsActivity.status.status == 'syncing' %} -
- - - - - Syncing... -
- {% endif %} + {# Error State #} +
+

+
- {% endif %} - {# Items List #} - {% if newsActivity.items.length %} -
- {# List View #} -
- {% for item in newsActivity.items %} -
- {% if item.imageUrl %} - +
+ {# View Mode and Filter Controls #} +
+ {# View Mode Buttons #} +
+ + + +
+ + {# Feed Filter Dropdown #} +
+ + + + +
+
+ + {# Stats Bar #} +
+
+ Feeds: + +
+
+ Items: + +
+
+ + + + + Syncing... +
+
+ + + + + Refreshing... +
+
+ + {# Items List #} +
+ {# List View #} +
+ +
+ + {# Card View #} +
+ +
+ + {# Full/Expanded View #} +
+ +
+
+ + {# Pagination #} +
+
- {% endfor %} + Previous + + + Page of + + +
+ - {# Card View #} -
- {% for item in newsActivity.items %} -
- {% if item.imageUrl %} -
- -
- {% endif %} - -
-

- {{ item.title }} -

- - {% if item.description %} -

- {{ item.description }} -

- {% endif %} - -
- - {# Use sourceTitle for aggregators, fall back to feedTitle for direct feeds #} - {% if item.sourceTitle %}{{ item.sourceTitle | truncate(20) }}{% elif item.feedTitle %}{{ item.feedTitle | truncate(20) }}{% endif %} - - {% if item.pubDate %} - - {% endif %} -
-
-
- {% endfor %} -
- - {# Full/Expanded View #} -
- {% for item in newsActivity.items %} -
- {% if item.imageUrl %} -
- -
- {% endif %} - -
- {# Meta bar #} -
- {# Source link - use sourceTitle/Url for aggregators, feedInfo for direct feeds #} - {% set displayTitle = item.sourceTitle or item.feedTitle %} - {% set displayUrl = item.sourceUrl or (item.feedInfo and item.feedInfo.siteUrl) %} - {% if displayTitle %} - - {% if item.feedInfo and item.feedInfo.imageUrl %} - - {% endif %} - {{ displayTitle }} - - {% endif %} - - {% if item.author %} - by {{ item.author }} - {% endif %} - - {% if item.pubDate %} - - {% endif %} -
- -

- {{ item.title }} -

- - {% if item.description %} -

- {{ item.description }} -

- {% endif %} - -
- - Read More - - - - - - {% if item.categories.length %} -
- {% for cat in item.categories %} - - {{ cat }} - - {% endfor %} -
- {% endif %} -
-
-
- {% endfor %} -
-
- {% else %} -
+ {# Empty State #} +

No news items yet.

Add some RSS feeds to get started.

- {% endif %}
+ +