Skip to content

Commit 559f240

Browse files
Articles don't full out height anymore, moved article source up
1 parent f93c272 commit 559f240

File tree

3 files changed

+18
-5
lines changed

3 files changed

+18
-5
lines changed

src/4-watchpigeon/watchpigeon.pug

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,17 +88,21 @@ main
8888
hr
8989

9090
footer
91+
unless article.sources.length > 1
92+
h4 Source
93+
else
94+
h4 Sources
95+
ul
96+
each source in article.sources
97+
li
98+
a(href=source.url)=source.name
9199
h4 Tags
92100
ul
93101
each party in article.parties
94102
+tagbutton("party", party.id, party.name)
95103
each subject in article.subjects
96104
+tagbutton("subject", subject.id, subject.name)
97105

98-
ul
99-
each source in article.sources
100-
li
101-
a(href=source.url)=source.name
102106

103107
script let parties = '!{JSON.stringify(area.parties)}';
104108
script(src="/scripts/political-parties.js")

src/_data/AFAWatchpigeonArticles.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -653,14 +653,22 @@
653653
"user_created": "5d375048-2c17-4ebe-af95-f5b1c57e0940",
654654
"date_created": "2024-10-04T12:10:56.455Z",
655655
"user_updated": "5d375048-2c17-4ebe-af95-f5b1c57e0940",
656-
"date_updated": "2024-10-14T10:13:43.589Z",
656+
"date_updated": "2024-10-16T10:55:40.975Z",
657657
"year": 2024,
658658
"title": "Police codex addition about “inappropriate nudity” by N-VA",
659659
"note": "The law is incredibly broad and puts final judgement in the common sense of whichever cop is active at the time. This law was added to have sex workers cover up within in their district, whilst being phrased as being for the sake of sex workers",
660660
"sources": [
661661
{
662662
"name": "Belgian news site (NL, vrt.be)",
663663
"url": "https://www.vrt.be/vrtnws/nl/2024/10/03/stad-antwerpen-neemt-nieuwe-regels-op-in-politiecodex-tegen-onze/"
664+
},
665+
{
666+
"name": "Another Belgian news site (NL, hln.be)",
667+
"url": "https://www.hln.be/antwerpen/te-naakt-op-straat-aanstootgevend-gedrag-kan-je-voortaan-gas-boete-kosten-in-antwerpen~a34b64228/"
668+
},
669+
{
670+
"name": "And another Belgian news site (NL, demorgen.be)",
671+
"url": "https://www.demorgen.be/snelnieuws/nieuw-seksueel-strafrecht-laat-te-veel-ruimte-voor-zedenschennis-volgens-de-wever~bcaf6d1d/"
664672
}
665673
],
666674
"subjects": [

src/style/political-parties.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ input[type=range] {
7777
#articles {
7878
display: flex;
7979
justify-content: space-between;
80+
align-items: start;
8081
flex-wrap: wrap;
8182
article {
8283
min-width: 300px;

0 commit comments

Comments
 (0)