Sort thumbnails and add functionality for customization
|
@ -2,6 +2,7 @@
|
|||
title: How the SPN compares to Tor
|
||||
date: 2020-01-22
|
||||
author: davegson
|
||||
custom_thumbnail_name: spn-tor
|
||||
---
|
||||
|
||||
## Different Missions
|
||||
|
|
Before Width: | Height: | Size: 237 KiB |
Before Width: | Height: | Size: 92 KiB |
Before Width: | Height: | Size: 97 KiB After Width: | Height: | Size: 97 KiB |
Before Width: | Height: | Size: 52 KiB After Width: | Height: | Size: 52 KiB |
Before Width: | Height: | Size: 56 KiB After Width: | Height: | Size: 56 KiB |
Before Width: | Height: | Size: 76 KiB After Width: | Height: | Size: 76 KiB |
BIN
assets/img/thumbnails/podcast/placeholder.png
Normal file
After Width: | Height: | Size: 97 KiB |
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 23 KiB |
|
@ -19,7 +19,11 @@ layout: page
|
|||
<li>
|
||||
<div class="block transform hover:scale-95 duration-150 ease-in-out">
|
||||
<a href="{{ post.url }}">
|
||||
<img src="{{ site.img_url }}shapes/podcast_blank.png" alt="">
|
||||
{% if post.custom_thumbnail_name == null %}
|
||||
<img src="{{ site.img_url }}thumbnails/blog/placeholder.png">
|
||||
{% else %}
|
||||
<img src="{{ site.img_url }}thumbnails/blog/{{ post.custom_thumbnail_name }}.png">
|
||||
{% endif %}
|
||||
<div class="pt-6">
|
||||
<span class="opacity-25">{{ post.date | date: "%-d. %b %Y" }}</span>
|
||||
<p>{{ post.title }}</p>
|
||||
|
|
|
@ -28,7 +28,11 @@ layout: page
|
|||
<li class="mt-10 md:mt-0">
|
||||
<div class="block transform hover:scale-95 duration-150 ease-in-out">
|
||||
<a href="{{ episode.url }}">
|
||||
<img src="{{ site.img_url }}shapes/podcast_blank.png" alt="">
|
||||
{% if episode.custom_thumbnail_name == null %}
|
||||
<img src="{{ site.img_url }}thumbnails/podcast/placeholder.png">
|
||||
{% else %}
|
||||
<img src="{{ site.img_url }}thumbnails/podcast/{{ episode.custom_thumbnail_name }}.png">
|
||||
{% endif %}
|
||||
<span style="font-size: 12rem; font-weight: 800; margin-top: -13.8rem; margin-left: -0.8rem;" class=" z-0 absolute bg-top">
|
||||
<button type="button" style="background-color: #6188ff;" class="inline-flex items-center px-4 py-4 rounded-md border border-transparent text-xs leading-5 font-extrabold text-white">
|
||||
<svg class="h-8 w-auto lg:h-5 fill-current text-white" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 9.41 11">
|
||||
|
|
|
@ -29,11 +29,10 @@ layout: page
|
|||
<div class="block transform hover:scale-95 duration-150 ease-in-out">
|
||||
<a href="{{ video.url }}">
|
||||
{% if video.custom_thumbnail_name == null %}.
|
||||
{% assign thumbnail_name = 'placeholder' %}
|
||||
<img src="{{ site.img_url }}thumbnails/video/placeholder.png" alt="">
|
||||
{% else %}
|
||||
{% assign thumbnail_name = video.custom_thumbnail_name %}
|
||||
<img src="{{ site.img_url }}thumbnails/video/{{ video.custom_thumbnail_name }}.png" alt="">
|
||||
{% endif %}
|
||||
<img src="{{ site.img_url }}thumbnails/video/{{ thumbnail_name }}.png" alt="">
|
||||
<span style="font-size: 12rem; font-weight: 800; margin-top: -13.8rem; margin-left: -0.8rem;" class=" z-0 absolute bg-top">
|
||||
<button type="button" style="background-color: #6188ff;" class="inline-flex items-center px-4 py-4 rounded-md border border-transparent text-xs leading-5 font-extrabold text-white">
|
||||
<svg class="h-8 w-auto lg:h-5 fill-current text-white" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 9.41 11">
|
||||
|
|