This commit is contained in:
+6
-15
@@ -1,3 +1,4 @@
|
||||
{% from "macros/feed-links.html" import visible_feed_links with context %}
|
||||
<section class="circuit-hero" aria-label="Labyricorn navigation hero" data-circuit-hero>
|
||||
<div class="circuit-hero-topline">
|
||||
<span><strong>LABYRICORN</strong> // SIGNAL ROUTER</span>
|
||||
@@ -103,23 +104,12 @@
|
||||
<section class="homepage-panel" aria-labelledby="recent-activity-heading">
|
||||
<div class="section-heading">
|
||||
<span id="recent-activity-heading">Recent Activity</span>
|
||||
<span>Sorted by date</span>
|
||||
<span>Sorted by date · {{ visible_feed_links('https://www.labyricorn.com/feed.xml', 'https://www.labyricorn.com/rss.xml') }}</span>
|
||||
</div>
|
||||
<div class="timeline" id="recent-activity-list" data-activity-feed data-batch-size="6">
|
||||
{% set entries = [] %}
|
||||
{% for section_id in ['articles', 'blog'] %}
|
||||
{% for item in site.get('/' ~ section_id).children %}
|
||||
{% if entries.append(item) %}{% endif %}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
{% for project in site.query('/projects').filter(F._model == 'project') %}
|
||||
{% set devlog = site.get(project.path ~ '/devlog') %}
|
||||
{% if devlog %}
|
||||
{% set latest_devlog_entry = devlog.children.order_by('-date', '-source_commit_time').first() %}
|
||||
{% if latest_devlog_entry and entries.append(latest_devlog_entry) %}{% endif %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% for item in entries|sort(attribute='date', reverse=true) %}
|
||||
{% for item_path in this.recent_activity_paths %}
|
||||
{% set item = site.get(item_path) %}
|
||||
{% if item %}
|
||||
<article class="timeline-entry accent-{{ item.kicker|lower }}" data-activity-item>
|
||||
<div class="entry-meta">
|
||||
<span class="label">{{ item.kicker }}</span>
|
||||
@@ -129,6 +119,7 @@
|
||||
<p>{{ item.summary }}</p>
|
||||
<a class="read-more" href="{{ item|url }}">Read entry →</a>
|
||||
</article>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
<div class="activity-controls" data-activity-controls hidden>
|
||||
|
||||
Reference in New Issue
Block a user