mirror of
https://github.com/TomHodson/tomhodson.github.com.git
synced 2025-06-26 10:01:18 +02:00
Fix number of highlights
This commit is contained in:
parent
308ad0cd5e
commit
698f322996
@ -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
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user