Fix number of highlights

This commit is contained in:
Tom 2025-01-18 23:01:15 +00:00
parent 308ad0cd5e
commit 698f322996
3 changed files with 9 additions and 4 deletions

View File

@ -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

View File

@ -24,11 +24,16 @@ Welcome to my little home on the web! Below you'll find recent blog posts, proje
</section>
<hr class="heading">
{% 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 %}
<br>
<a href = "/blog/" class = "highlights-more">More</a>
</section>