Skip to content

Commit

Permalink
3 news items in front page
Browse files Browse the repository at this point in the history
  • Loading branch information
leouieda committed Sep 18, 2024
1 parent 3b45bfa commit e19f61d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _templates/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ <h2>News from the lab</h2>
The latest news and updates from CompGeoLab members.
</p>
<ul class="flow fa-ul">
{%- for item in (site["news/index"]["siblings"]|sort(attribute="date", reverse=True)|list)[:2] %}
{%- for item in (site["news/index"]["siblings"]|sort(attribute="date", reverse=True)|list)[:3] %}
<li>
<i class="fa-li far fa-arrow-alt-circle-right fa-fw" aria-hidden="true"></i>
<a class="text-bold" href="{{ item.path|relative_to(page.path) }}">{{ item.title }}</a>
Expand All @@ -18,7 +18,7 @@ <h2>News from the lab</h2>
{%- endfor %}
</ul>
<p>
Older news items can be found in: {{ macros.page_link("news/index", page, site) }}.
More news items can be found in: {{ macros.page_link("news/index", page, site) }}.
</p>
{{ page.body }}
{%- endblock %}
Expand Down

0 comments on commit e19f61d

Please sign in to comment.