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: >- +
+
You don't seem to be using an ad blocker.
+
Please consider installing one.
+
+- id: news1 + 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 ---
-
- [×] -

-

You don't seem to be using an ad blocker.
-
Please consider installing one.
-

-
-
- [×] -

Now also available via Tor

- http://iwccx6ebuapto7dlkd4m5fooud6nqn2z7go7aass5c4q6vl6gzs5htad.onion/ + {% for item in site.data.news %} +
+ + {{ item.content }}
+ {% endfor %} {%- if page.title -%}

{{ page.title }}

diff --git a/assets/main.scss b/assets/main.scss index 0d5ddd7..c33db18 100644 --- a/assets/main.scss +++ b/assets/main.scss @@ -46,3 +46,16 @@ a:visited { color: purple !important; } +.news-item { + border-radius: 10px; + padding: 5px; + background: #eeeeee; + margin-bottom: 1em; + position: relative; +} + +.banner-close-button { + position: absolute; + top: 10px; + right: 10px; +} -- cgit v1.2.3