diff options
author | uvok cheetah | 2023-10-29 13:15:07 +0100 |
---|---|---|
committer | uvok cheetah | 2023-10-29 13:15:07 +0100 |
commit | 11a97fc2c6f5768f465c2f97200c922422493e16 (patch) | |
tree | c80b72dea9ed40a737c229db6bf447f498ed2408 /_layouts/postlist.html | |
parent | 912b464ef79488e140a4c93b03bb99dc05332bc3 (diff) |
Replace static news by Jekyll data file.
Also, utilize CSS classes
Diffstat (limited to '_layouts/postlist.html')
-rw-r--r-- | _layouts/postlist.html | 28 |
1 files changed, 5 insertions, 23 deletions
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;" - >[×]</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;" - >[×]</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">[×]</a> + {{ item.content }} </div> + {% endfor %} {%- if page.title -%} <h1 class="page-heading">{{ page.title }}</h1> |