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.
master
TLSM 2022-04-28 17:58:41 -04:00 committed by GitHub
parent 868bee9e20
commit 3e8e299fb8
2 changed files with 31 additions and 4 deletions

View File

@ -21,12 +21,9 @@
{% endif %}
{% if SITE_NAME == 'rDrama' %}
<div class="srd">
<a style="color: white" class="text-small-mobile" href="https://www.independent.co.uk/news/world/americas/us-politics/reddit-conservatives-post-trans-child-fake-b2060803.html">As seen on The Independent 📰✨💞</a>
</div>
{% include "journoid_banner.html" %}
{% endif %}
<div class="navbar navbar-expand-md navbar-light" id="navbar">
<div class="container-fluid" style="padding:0;">
<a href="/" class="navbar-brand mr-auto {% if SITE_NAME in ('PCM','WPD') and not sub %}flex-grow-1{% endif %}">

View File

@ -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 %}
<div class="srd">
<a id="srd-link" class="text-small-mobile" href="{{ journoid[1] }}">{{ journoid[0] }}</a>
<span id="srd-separator">&mdash;</span>
<a id="srd-discuss" class="text-small-mobile" href="{{ journoid[2] }}">(discuss)</a>
</div>