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 --- _data/news.yml | 10 ++++++++++ _layouts/postlist.html | 28 +++++----------------------- assets/main.scss | 13 +++++++++++++ 3 files changed, 28 insertions(+), 23 deletions(-) create mode 100644 _data/news.yml diff --git a/_data/news.yml b/_data/news.yml new file mode 100644 index 0000000..4684514 --- /dev/null +++ b/_data/news.yml @@ -0,0 +1,10 @@ +- id: AdBlock + content: >- +
Now also available via Tor
+http://iwccx6ebuapto7dlkd4m5fooud6nqn2z7go7aass5c4q6vl6gzs5htad.onion/
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
---
-
Now also available via Tor
-http://iwccx6ebuapto7dlkd4m5fooud6nqn2z7go7aass5c4q6vl6gzs5htad.onion/
+ {% for item in site.data.news %}
+