1
0
Fork 0
mirror of https://github.com/safing/web synced 2025-04-17 09:29:08 +00:00

Grab number from title only for PU vids

This commit is contained in:
davegson 2021-05-27 15:49:19 +02:00
parent efa7ac6b68
commit 0c33f4b133
2 changed files with 13 additions and 5 deletions

View file

@ -19,8 +19,12 @@
{% endif %}
{{ video.date | date: "%-d. %b %Y" }}
</span>
{% assign title_length = video.title | size %}
<p>{{ video.title | slice: 7, title_length }} - #{{ video.title | slice: 2, 2 }}</p>
{% if video.progress_update %}
{% assign title_length = video.title | size %}
<p>{{ video.title | slice: 7, title_length }} - #{{ video.title | slice: 2, 2 }}</p>
{% else %}
<p>{{ video.title }}</p>
{% endif %}
</div>
</a>
</div>

View file

@ -4,9 +4,13 @@ container_class: "podcast pt-40 lg:pt-64"
---
<div class="text-center">
{% assign title_length = page.title | size %}
<span style="font-size: 12rem; font-weight: 800; margin-top: -9rem; opacity: 0.05;" class="z-0 ml-0 w-full left-0 text-center absolute bg-top">#{{ page.title | slice: 2, 2 }}</span>
<h1 style="padding-top: 1.5em;"">{{ page.title | slice: 7, title_length }}</h1>
{% if page.progress_update %}
{% assign title_length = page.title | size %}
<span style="font-size: 12rem; font-weight: 800; margin-top: -9rem; opacity: 0.05;" class="z-0 ml-0 w-full left-0 text-center absolute bg-top">#{{ page.title | slice: 2, 2 }}</span>
<h1 style="padding-top: 1.5em;">{{ page.title | slice: 7, title_length }}</h1>
{% else %}
<h1>{{ page.title }}</h1>
{% endif %}
<p class="opacity-55">{{ page.date | date: "%B %-d, %Y" }}</p>
<div class="flex mx-auto justify-center pt-5">
<a href="{{ site.twitter_url }}" class="opacity-55 hover:opacity-100 ease-in-out duration-150" target="_blank">