From 698f322996450a81e4a4b2c60864e85499a431bd Mon Sep 17 00:00:00 2001 From: Tom Date: Sat, 18 Jan 2025 23:01:15 +0000 Subject: [PATCH] Fix number of highlights --- ...{2100-12-30-template.md => 0000-12-30-template.md} | 0 _posts/2025-01-18-heic-depth.md | 2 +- highlights.md | 11 ++++++++--- 3 files changed, 9 insertions(+), 4 deletions(-) rename _posts/{2100-12-30-template.md => 0000-12-30-template.md} (100%) diff --git a/_posts/2100-12-30-template.md b/_posts/0000-12-30-template.md similarity index 100% rename from _posts/2100-12-30-template.md rename to _posts/0000-12-30-template.md diff --git a/_posts/2025-01-18-heic-depth.md b/_posts/2025-01-18-heic-depth.md index aeaabd2..d564069 100644 --- a/_posts/2025-01-18-heic-depth.md +++ b/_posts/2025-01-18-heic-depth.md @@ -1,5 +1,5 @@ --- -title: Undexpected Depths +title: Unexpected Depths layout: post excerpt: Did you know iPhone portrait mode HEIC files have a depth map in them? draft: true diff --git a/highlights.md b/highlights.md index 1b59185..9097d4f 100644 --- a/highlights.md +++ b/highlights.md @@ -24,11 +24,16 @@ Welcome to my little home on the web! Below you'll find recent blog posts, proje
-{% for post in site.posts limit:5 %} -{% if post.draft == false or jekyll.environment == "development" %} -{% include post_summary.html %} +{% if jekyll.environment == 'development' %} +{% assign filtered_posts = site.posts %} +{% else %} +{% assign filtered_posts = site.posts | where: "draft", "false" %} {% endif %} + +{% for post in filtered_posts limit:5 %} +{% include post_summary.html %} {% endfor %} +
More