Skip to content

Commit f6a64e2

Browse files
authored
Merge pull request #493 from fronteers/fix-scheduled-page
Fix scheduled page
2 parents 5c78690 + bb48296 commit f6a64e2

File tree

7 files changed

+15
-17
lines changed

7 files changed

+15
-17
lines changed

.DS_Store

-6 KB
Binary file not shown.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ public
88
.env
99
.idea
1010
.vscode
11+
.DS_Store

src/_assets/css/elements/table.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,3 +74,8 @@ tfoot th {
7474
table tbody tr:nth-child(2n + 1) {
7575
background-color: var(--lilac-light);
7676
}
77+
78+
table time,
79+
table .author {
80+
text-wrap-mode: nowrap;
81+
}

src/_data/translations.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,10 @@ module.exports = {
9393
"We currently have no upcoming events, check back soon for more updates.",
9494
upcomingActivitiesTitle: "Upcoming activities",
9595
pastActivitiesTitle: "Past activities",
96-
scheduled_date: "Date",
96+
scheduled_date: "Publish Date",
9797
scheduled_title: "Title",
9898
scheduled_author: "Author",
99-
scheduled_pagetype: "Page type",
99+
scheduled_pagetype: "Type",
100100
scheduled_something:
101101
"Posts that are future-dated, and will be shared later:",
102102
scheduled_nothing: "Nothing to show here!",
@@ -199,14 +199,14 @@ module.exports = {
199199
"Momenteel zijn er geen nieuwe activiteiten gepland, neem binnenkort gerust terug een kijkje.",
200200
upcomingActivitiesTitle: "Geplande activiteiten",
201201
pastActivitiesTitle: "Voorbije activiteiten",
202-
scheduled_date: "Datum",
202+
scheduled_date: "Publicatiedatum",
203203
scheduled_title: "Titel",
204204
scheduled_author: "Auteur",
205-
scheduled_pagetype: "Paginatype",
205+
scheduled_pagetype: "Soort",
206206
scheduled_something:
207207
"Pagina's die binnenkort publiekelijk zichtbaar worden:",
208208
scheduled_nothing: "Hier is niets te zien!",
209-
post: "Blog artikel",
209+
post: "Blog",
210210
member: "Ledenprofiel",
211211
activity: "Activiteit",
212212
job: "Vacature",

src/_includes/layouts/scheduled.liquid

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -40,22 +40,14 @@
4040
<td>
4141
<a href="{{ post.url }}">{{ post.data.title }}</a>
4242
</td>
43-
<td>
43+
<td class="author">
4444
{{ post.data.author }}
4545
</td>
4646
<td>
4747
{%- if post.data.locale == "nl" -%}
48-
{%- if locale == "nl" -%}
49-
Nederlands
50-
{%- else -%}
51-
Dutch
52-
{%- endif -%}
48+
NL
5349
{%- elsif post.data.locale == "en" -%}
54-
{%- if locale == "nl" -%}
55-
Engels
56-
{%- else -%}
57-
English
58-
{%- endif -%}
50+
EN
5951
{%- else -%}
6052
{{ post.data.locale }}
6153
{%- endif -%}
File renamed without changes.

utils/collections.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ module.exports = {
211211
.filter((post) => Boolean(!post.data.excludeFromCollection))
212212
.filter((post) => Boolean(post.date && new Date(post.date) > now))
213213
.filter((post) => Boolean(!post.data.parent))
214-
.reverse();
214+
.sort((a, b) => a.data.date - b.data.date);
215215
},
216216

217217
published_posts_after_2024(collection) {

0 commit comments

Comments
 (0)