From 11a97fc2c6f5768f465c2f97200c922422493e16 Mon Sep 17 00:00:00 2001
From: uvok cheetah
Date: Sun, 29 Oct 2023 13:15:07 +0100
Subject: Replace static news by Jekyll data file.

Also, utilize CSS classes
---
 _layouts/postlist.html | 28 +++++-----------------------
 1 file changed, 5 insertions(+), 23 deletions(-)

(limited to '_layouts/postlist.html')

diff --git a/_layouts/postlist.html b/_layouts/postlist.html
index 765c014..0143919 100644
--- a/_layouts/postlist.html
+++ b/_layouts/postlist.html
@@ -3,30 +3,12 @@ layout: default
 ---
 
 <div class="home">
-  <div
-      id="AdBlock"
-      style="border-radius: 10px; padding: 5px; background: #eeeeee; margin-bottom: 1em; position: relative;"
-    >
-    <a
-        class="close-button"
-        style="position: absolute; top: 10px; right: 10px;"
-    >&lbrack;&times;&rbrack;</a>
-    <p>
-      <div style="font-weight: bold">You don't seem to be using an ad blocker.</div>
-      <div>Please consider installing one.</div>
-    </p>
-  </div>
-  <div
-      id="news1"
-      style="border-radius: 10px; padding: 5px; background: #eeeeee; margin-bottom: 1em; position: relative;"
-    >
-    <a
-        class="close-button"
-        style="position: absolute; top: 10px; right: 10px;"
-    >&lbrack;&times;&rbrack;</a>
-    <p>Now also available via Tor</p>
-    <code>http://iwccx6ebuapto7dlkd4m5fooud6nqn2z7go7aass5c4q6vl6gzs5htad.onion/</code>
+  {% for item in site.data.news %}
+  <div id="{{ item.id }}" class="news-item">
+    <a class="banner-close-button">&lbrack;&times;&rbrack;</a>
+    {{ item.content }}
   </div>
+  {% endfor %}
 
   {%- if page.title -%}
     <h1 class="page-heading">{{ page.title }}</h1>
-- 
cgit v1.2.3