Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 1 addition & 13 deletions templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ <h3 class="font-bold text-lg md:text-2xl mb-4">{{ title }}</h3>
{# News post notification, if there is one #}
<div class="flex flex-col gap-4">
{% set news_section = get_section(path="news/_index.md") %}
{% set news_posts = news_section.pages | slice(end=2) %}
{% set news_posts = news_section.pages | slice(end=1) %}
{% for news_post in news_posts %}
{{ self::post_notification(
title=news_post.title,
Expand All @@ -75,18 +75,6 @@ <h3 class="font-bold text-lg md:text-2xl mb-4">{{ title }}</h3>
label="News",
) }}
{% endfor %}

{% set blog_section = get_section(path="resources/blog/_index.md") %}
{% set blog_posts = blog_section.pages | slice(end=1) %}
{% for blog_post in blog_posts %}
{{ self::post_notification(
title=blog_post.title,
href=blog_post.permalink,
class="bg-blue-50 hover:bg-blue-100 border-blue-200",
icon_class="bi-pencil-square",
label="Blog",
) }}
{% endfor %}
</div>


Expand Down
Loading