From 5ab1a6b17d3b6c4b38642d66d9ee8ddf3f3cf767 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Tue, 21 May 2024 21:03:41 +0200 Subject: [PATCH] reduce empty space in compiled blog html --- web/_includes/devlog_category.html | 32 +++++++++++++++--------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/web/_includes/devlog_category.html b/web/_includes/devlog_category.html index 497a0ff..c0a46d8 100644 --- a/web/_includes/devlog_category.html +++ b/web/_includes/devlog_category.html @@ -2,30 +2,30 @@

{{ include.emoji }} {{ include.tag }}

{{ include.description }}

- {% for post in site.posts %} - {% if post.tags contains include.tag %} + {%- for post in site.posts -%} + {%- if post.tags contains include.tag -%}
- {% if post.image %} - {% assign start = post.image | slice: 0, 4 %} - {% if start == "http" %} - {% assign url = post.image %} - {% else %} - {% assign url = post.url | append: post.image %} - {% endif %} + {%- if post.image -%} + {%- assign start = post.image | slice: 0, 4 -%} + {%- if start == "http" -%} + {%- assign url = post.image -%} + {%- else -%} + {%- assign url = post.url | append: post.image -%} + {%- endif -%} Cover image for post {{ post.title }} - {% endif %} + {%- endif -%}

{{ post.title }}

{{ post.date | date_to_string }}
Read this post - {% if post.itch %} + {%- if post.itch -%} – Read on itch - {% endif %} - {% if post.steam %} + {%- endif -%} + {%- if post.steam -%} – Read on Steam - {% endif %} + {%- endif -%}
- {% endif %} - {% endfor %} + {%- endif -%} + {%- endfor -%}