From d1ffd19b068f2d9509431dfd8945496edd4923cc Mon Sep 17 00:00:00 2001
From: Luke <luke@safing.io>
Date: Wed, 8 Sep 2021 15:22:32 +0200
Subject: [PATCH] Add update icon

---
 _includes/thumbnail_blog.html                 | 38 ++++++++++++-------
 .../2021-09-08-portmaster-release-6-22.md     |  1 +
 2 files changed, 25 insertions(+), 14 deletions(-)

diff --git a/_includes/thumbnail_blog.html b/_includes/thumbnail_blog.html
index 5603236..c9ba812 100644
--- a/_includes/thumbnail_blog.html
+++ b/_includes/thumbnail_blog.html
@@ -5,35 +5,45 @@
         {% 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">
+        <img src="{{ site.img_url }}thumbnails/blog/{{ post.custom_thumbnail_name }}.png">
         {% endif %}
         {% 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>
+        <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 %}
+        {% if post.portmaster_update == true %}
+        <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-3 py-3 rounded-md border border-transparent text-xs leading-5 font-extrabold  text-white">
+            <svg class="h-8 w-auto lg:h-7" style="padding: 0.3rem;" xmlns="http://www.w3.org/2000/svg" data-name="Layer 2" viewBox="0 0 10.82 10.94">
+              <path fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.4" d="M1.41 7.98a5 5 0 0 0 .65.83 4.7 4.7 0 0 0 8-2.67M.75 4.8a4.68 4.68 0 0 1 1.32-2.67 4.73 4.73 0 0 1 6.68 0 4.56 4.56 0 0 1 .65.83" />
+              <path fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.4" d="M1.23 9.65V7.98H2.9M9.59 1.29v1.67H7.92" />
+            </svg>
+          </button>
+        </span>
         {% endif %}
       </div>
       <div class="pt-6">
         <div class="flex w-full relative">
           <span class="opacity-25">
             {% if include.pre_header %}
-              {{ include.pre_header }} -
+            {{ include.pre_header }} -
             {% endif %}
             {{ post.date | date: "%-d. %b %Y" }}
-            </span>
-            <div class="flex-shrink-0 right-0 absolute right-0">
-              <div class="flex ">
-                <span class="transform hover:scale-110 duration-150 ease-in-out" tooltip="{{ post.author | capitalize }}">
-                  <img class="inline-block h-6 w-6 rounded-full text-white shadow-solid border-2 border-transparent" src="{{ site.img_url }}profiles/{{ post.author | downcase }}.png" alt="{{ post.author | capitalize }}">
-                </span>
-              </div>
+          </span>
+          <div class="flex-shrink-0 right-0 absolute right-0">
+            <div class="flex ">
+              <span class="transform hover:scale-110 duration-150 ease-in-out" tooltip="{{ post.author | capitalize }}">
+                <img class="inline-block h-6 w-6 rounded-full text-white shadow-solid border-2 border-transparent" src="{{ site.img_url }}profiles/{{ post.author | downcase }}.png" alt="{{ post.author | capitalize }}">
+              </span>
             </div>
+          </div>
         </div>
         {% if post.progress_update == true %}
-          {% assign title_length = post.title | size %}
-          <p>{{ post.title | slice: 7, title_length }} - #{{ post.title | slice: 2, 2 }}</p>
+        {% assign title_length = post.title | size %}
+        <p>{{ post.title | slice: 7, title_length }} - #{{ post.title | slice: 2, 2 }}</p>
         {% else %}
-          <p>{{ post.title }}</p>
+        <p>{{ post.title }}</p>
         {% endif %}
       </div>
     </a>
   </div>
-</li>
+</li>
\ No newline at end of file
diff --git a/_publications/2021-09-08-portmaster-release-6-22.md b/_publications/2021-09-08-portmaster-release-6-22.md
index 3d570a3..14bee3d 100644
--- a/_publications/2021-09-08-portmaster-release-6-22.md
+++ b/_publications/2021-09-08-portmaster-release-6-22.md
@@ -7,6 +7,7 @@ date: 2021-09-08
 author: david
 custom_thumbnail_name: portmaster-0.6.22-available-now
 portmaster_plug: true
+portmaster_update: true
 ---
 
 ### Exploring Portmaster Just Got Easier