8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f7f22e commit 29fb2feCopy full SHA for 29fb2fe
config.toml
@@ -8,6 +8,9 @@ generate_rss = true
8
9
[extra]
10
date_format = "%F"
11
+
12
+[extra.home]
13
+max_posts = 3
14
show_summaries = false
15
16
[extra.social_links]
templates/includes/home.html
@@ -29,7 +29,7 @@ <h2 class="post-list-heading">{{ section.title | default(value="Latest News") }}
29
{% set posts = get_section(path="posts/_index.md") %}
30
{% if posts and posts.pages | length > 0 %}
31
<ul class="post-list">
32
- {% for post in posts.pages %}
+ {% for post in posts.pages | slice(end=config.extra.home.max_posts) %}
33
<li>
34
{% if post.date %}
35
{% set date_format = config.extra.date_format | default(value="%b %-d, %Y") %}
0 commit comments