From a5f7cb347df806e70649ce8f419e4964b8c7326b Mon Sep 17 00:00:00 2001
From: davegson <3080765+davegson@users.noreply.github.com>
Date: Mon, 20 Feb 2023 09:48:55 +0100
Subject: [PATCH] Hide Valentine's Day sale from features

it's not too nice I believe to see you just missed out on a sale - especially the color catches your attention. Still can be seen in blogs naturally, but featuring it after the sale is odd
---
 _publications/2023-02-14-valentines-day-69-sale.md | 1 +
 features/index.html                                | 3 ++-
 index.html                                         | 3 ++-
 spn/index.html                                     | 3 ++-
 4 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/_publications/2023-02-14-valentines-day-69-sale.md b/_publications/2023-02-14-valentines-day-69-sale.md
index c03358a..09ee413 100644
--- a/_publications/2023-02-14-valentines-day-69-sale.md
+++ b/_publications/2023-02-14-valentines-day-69-sale.md
@@ -6,6 +6,7 @@ title: "Valentine's Day 69 Sale"
 date: 2023-02-14
 author: David
 custom_thumbnail_name: 69-sale
+hide_from_features: true
 ---
 
 ### Portmaster Unlimited Is on SALE for Valentine's Day
diff --git a/features/index.html b/features/index.html
index 8970afd..b34b796 100644
--- a/features/index.html
+++ b/features/index.html
@@ -116,7 +116,8 @@ title: Safing Portmaster - Features
       <div class="showcase-two-bottom" style="max-width: 100%;">
           <div class="blogpod-container" style="margin-top: 0;">
               <div class="blogpod-container-bottom">
-                  {% assign all_publications = site.publications | sort: "date" | reverse %}
+                  {% assign all_publications = site.publications | where_exp:"item",
+"item.hide_from_features != true" | sort: "date" | reverse %}
                   {% for publication in all_publications limit: 3 %}
                   {% if publication.category == "blog" %}
                       {% assign post = publication %}
diff --git a/index.html b/index.html
index 56ff373..3d87b47 100644
--- a/index.html
+++ b/index.html
@@ -122,7 +122,8 @@ redirect_from:
       </div>
 
       <div class="blogpod-container-bottom">
-          {% assign all_publications = site.publications | sort: "date" | reverse %}
+          {% assign all_publications = site.publications | where_exp:"item",
+"item.hide_from_features != true" | sort: "date" | reverse %}
           {% for publication in all_publications limit: 6 %}
             {% if publication.category == "blog" %}
               {% assign post = publication %}
diff --git a/spn/index.html b/spn/index.html
index 7fc5f3a..244a06f 100644
--- a/spn/index.html
+++ b/spn/index.html
@@ -229,7 +229,8 @@ layout: page
         <div class="showcase-two-bottom" style="max-width: 100%;">
             <div class="blogpod-container" style="margin-top: 0;">
                 <div class="blogpod-container-bottom">
-                    {% assign all_publications = site.publications | sort: "date" | reverse %}
+                    {% assign all_publications = site.publications | where_exp:"item",
+  "item.hide_from_features != true" | sort: "date" | reverse %}
                     {% for publication in all_publications limit: 3 %}
                     {% if publication.category == "blog" %}
                         {% assign post = publication %}