mirror of
https://github.com/Ellpeck/TinyLifeWeb.git
synced 2024-12-22 06:39:23 +01:00
reduce empty space in compiled blog html
This commit is contained in:
parent
5978931868
commit
5ab1a6b17d
1 changed files with 16 additions and 16 deletions
|
@ -2,30 +2,30 @@
|
||||||
<h2 class="devlog-category" id="{{ include.tag | slugify }}">{{ include.emoji }} {{ include.tag }}</h2>
|
<h2 class="devlog-category" id="{{ include.tag | slugify }}">{{ include.emoji }} {{ include.tag }}</h2>
|
||||||
<p>{{ include.description }}</p>
|
<p>{{ include.description }}</p>
|
||||||
|
|
||||||
{% for post in site.posts %}
|
{%- for post in site.posts -%}
|
||||||
{% if post.tags contains include.tag %}
|
{%- if post.tags contains include.tag -%}
|
||||||
<div class="devlog">
|
<div class="devlog">
|
||||||
{% if post.image %}
|
{%- if post.image -%}
|
||||||
{% assign start = post.image | slice: 0, 4 %}
|
{%- assign start = post.image | slice: 0, 4 -%}
|
||||||
{% if start == "http" %}
|
{%- if start == "http" -%}
|
||||||
{% assign url = post.image %}
|
{%- assign url = post.image -%}
|
||||||
{% else %}
|
{%- else -%}
|
||||||
{% assign url = post.url | append: post.image %}
|
{%- assign url = post.url | append: post.image -%}
|
||||||
{% endif %}
|
{%- endif -%}
|
||||||
<img src="{{ url }}" class="devlog-image" width="100%" height="120px" alt="Cover image for post {{ post.title }}">
|
<img src="{{ url }}" class="devlog-image" width="100%" height="120px" alt="Cover image for post {{ post.title }}">
|
||||||
{% endif %}
|
{%- endif -%}
|
||||||
<h4 class="devlog-title">{{ post.title }}</h4>
|
<h4 class="devlog-title">{{ post.title }}</h4>
|
||||||
<div class="text-muted">{{ post.date | date_to_string }}</div>
|
<div class="text-muted">{{ post.date | date_to_string }}</div>
|
||||||
<div>
|
<div>
|
||||||
<a href="{{ post.url }}">Read this post</a>
|
<a href="{{ post.url }}">Read this post</a>
|
||||||
{% if post.itch %}
|
{%- if post.itch -%}
|
||||||
– <a href="{{ post.itch }}">Read on itch</a>
|
– <a href="{{ post.itch }}">Read on itch</a>
|
||||||
{% endif %}
|
{%- endif -%}
|
||||||
{% if post.steam %}
|
{%- if post.steam -%}
|
||||||
– <a href="{{ post.steam }}">Read on Steam</a>
|
– <a href="{{ post.steam }}">Read on Steam</a>
|
||||||
{% endif %}
|
{%- endif -%}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{%- endif -%}
|
||||||
{% endfor %}
|
{%- endfor -%}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue