From 04702390bb62e13e78796afff48234c7cdcc8107 Mon Sep 17 00:00:00 2001 From: davegson <3080765+davegson@users.noreply.github.com> Date: Thu, 2 Jul 2020 17:53:53 +0200 Subject: [PATCH] Create thumbnail partials for blogs and pods --- _includes/thumbnail_blog.html | 27 +++++++++++++++++++++++++++ _includes/thumbnail_podcast.html | 32 ++++++++++++++++++++++++++++++++ blog/index.html | 26 +------------------------- podcast/index.html | 31 +------------------------------ 4 files changed, 61 insertions(+), 55 deletions(-) create mode 100644 _includes/thumbnail_blog.html create mode 100644 _includes/thumbnail_podcast.html diff --git a/_includes/thumbnail_blog.html b/_includes/thumbnail_blog.html new file mode 100644 index 0000000..ad3152b --- /dev/null +++ b/_includes/thumbnail_blog.html @@ -0,0 +1,27 @@ +
  • +
    + +
    + {% if post.custom_thumbnail_name == null %} + + {% else %} + + {% endif %} + {% if post.progress_update == true %} + #{{ post.title | slice: 2, 2 }} + {% endif %} +
    +
    + + {{ post.date | date: "%-d. %b %Y" }} + + {% if post.progress_update == true %} + {% assign title_length = post.title | size %} +

    {{ post.title | slice: 7, title_length }} - #{{ post.title | slice: 2, 2 }}

    + {% else %} +

    {{ post.title }}

    + {% endif %} +
    +
    +
    +
  • diff --git a/_includes/thumbnail_podcast.html b/_includes/thumbnail_podcast.html new file mode 100644 index 0000000..786a637 --- /dev/null +++ b/_includes/thumbnail_podcast.html @@ -0,0 +1,32 @@ +
  • +
    + +
    + {% if episode.custom_thumbnail_name == null %} + + {% else %} + + {% endif %} + #{{ episode.title | slice: 2, 2 }} +
    + + + +
    + + {{ episode.date | date: "%-d. %b %Y" }} + + {% assign title_length = episode.title | size %} +

    {{ episode.title | slice: 7, title_length }} - #{{ episode.title | slice: 2, 2 }}

    +
    +
    +
    +
  • diff --git a/blog/index.html b/blog/index.html index 8d6acc9..3c3f0f7 100644 --- a/blog/index.html +++ b/blog/index.html @@ -17,31 +17,7 @@ layout: page

    diff --git a/podcast/index.html b/podcast/index.html index d9d8ee5..0e57e1e 100644 --- a/podcast/index.html +++ b/podcast/index.html @@ -26,36 +26,7 @@ layout: page