From 3e8e299fb8f4303795f02f545df53ad9c75c3d72 Mon Sep 17 00:00:00 2001
From: TLSM <104547575+TLSM@users.noreply.github.com>
Date: Thu, 28 Apr 2022 17:58:41 -0400
Subject: [PATCH] Add dynamic journoid banner text. (#232)
The .srd header banner currently has fixed text. However, there have
been many gayops which have made the news. journoid_banner.html is a
dynamic template which selects a random one to present.
Also, stylesheets and markup for the banner have been unslurred.
---
files/templates/header.html | 5 +----
files/templates/journoid_banner.html | 30 ++++++++++++++++++++++++++++
2 files changed, 31 insertions(+), 4 deletions(-)
create mode 100644 files/templates/journoid_banner.html
diff --git a/files/templates/header.html b/files/templates/header.html
index 2d2844238..e2a179408 100644
--- a/files/templates/header.html
+++ b/files/templates/header.html
@@ -21,12 +21,9 @@
{% endif %}
{% if SITE_NAME == 'rDrama' %}
-
+ {% include "journoid_banner.html" %}
{% endif %}
-
diff --git a/files/templates/journoid_banner.html b/files/templates/journoid_banner.html
new file mode 100644
index 000000000..4f5c6b63e
--- /dev/null
+++ b/files/templates/journoid_banner.html
@@ -0,0 +1,30 @@
+{# JournoidBanner Index (keep updated for clarity's sake):
+ [0] TransParentTransKid (good coverage) on the Independent
+ [1] TransParentTransKid (lol coverage) on Reuters
+ [2] "Furry Culture Month" baited Libs of TikTok on Mashable
+#}
+{% set JOURNOID_BANNERS = [
+ (
+ "As seen on The Independent 📰✨💞",
+ "https://www.independent.co.uk/news/world/americas/us-politics/reddit-conservatives-post-trans-child-fake-b2060803.html",
+ "/post/61530/"
+ ),
+ (
+ "Has been fact-checked by Reuters 📰",
+ "https://www.reuters.com/article/factcheck-socialmedia-gender/fact-check-post-about-parent-forcefully-medicating-transgender-child-is-fabricated-idUSL2N2WC1OK",
+ "/post/60443/"
+ ),
+ (
+ "As seen on Mashable & Libs of TikTok 📰✨",
+ "https://mashable.com/article/libs-of-tiktok-furries-school-troll-fake",
+ "/post/63155/"
+ ),
+]
+%}
+
+{% set journoid = JOURNOID_BANNERS|random %}
+