From e2b8d9c700e3632f7c2880c2442668810fe070ca Mon Sep 17 00:00:00 2001 From: Lukas Ruge <lukeslog@googlemail.com> Date: Sat, 16 Dec 2017 10:33:11 +0100 Subject: [PATCH] filter articles on frontpage by flag. fixes #9 --- _includes/post-list-frontpage.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_includes/post-list-frontpage.html b/_includes/post-list-frontpage.html index 1acdc3aa..b5196dc5 100644 --- a/_includes/post-list-frontpage.html +++ b/_includes/post-list-frontpage.html @@ -1,7 +1,7 @@ <section class="section typeset"> <ul class="list list--posts"> - <!--{% assign frontpage_articles = (site.posts | where: "frontpage" , "true") %}--> - {% for page in site.posts limit:10 %} + {% assign frontpage_articles = (site.posts | where: "frontpage" , "true") %} + {% for page in frontpage_articles limit:10 %} <li class="item item--post"> <article class="article article--post"> -- GitLab