1
0
Fork 0
mirror of https://github.com/safing/web synced 2025-04-22 03:49:08 +00:00

Only add blog number when it is a progress update

This commit is contained in:
davegson 2020-07-02 17:52:59 +02:00
parent 9382246284
commit b621c492ac
2 changed files with 12 additions and 2 deletions

View file

@ -1,8 +1,11 @@
---
title: "Progress Update - #01"
# ⚠️ ALWAYS follow this format: "#001 - Some sweet title"
# this has to be consistent for displaying only the episode number or only the title
title: "#001 - Progress Update June"
date: 2020-06-26
author: davegson
custom_thumbnail_name: progress-update
progress_update: true
---
*Note: not every update needs to be [a podcast]({{ site.podcast_url }}) or [a video]({{ site.video_url }}), thought I'd mix things up with a written update - [let me know]({{ site.reddit_url }}) if you like this.*

View file

@ -26,11 +26,18 @@ layout: page
{% else %}
<img src="{{ site.img_url }}thumbnails/blog/{{ post.custom_thumbnail_name }}.png">
{% endif %}
<span class="absolute text-white right-0 bottom-0 pr-3 pb-3" style="font-size: 3.1rem; font-weight: 800;" >#01</span>
{% if post.progress_update == true %}
<span class="absolute text-white right-0 bottom-0 pr-3 pb-3" style="font-size: 3.1rem; font-weight: 800;" >#{{ post.title | slice: 2, 2 }}</span>
{% endif %}
</div>
<div class="pt-6">
<span class="opacity-25">{{ post.date | date: "%-d. %b %Y" }}</span>
{% if post.progress_update == true %}
{% assign title_length = post.title | size %}
<p>{{ post.title | slice: 7, title_length }} - #{{ post.title | slice: 2, 2 }}</p>
{% else %}
<p>{{ post.title }}</p>
{% endif %}
</div>
</a>
</div>