Skip to content

Commit dd034d6

Browse files
authored
Fix news cards and refresh thumbnails (#74)
1 parent 3bd6897 commit dd034d6

12 files changed

Lines changed: 22 additions & 7 deletions

‎_layouts/home.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ <h1 class="name">WurstScript</h1>
3535
<div class="news">
3636
<h2 class="title">Latest Updates</h2>
3737
<div class="cards">
38-
{% assign posts = site.news | sort: 'date' | reverse %}
38+
{% assign posts = site.news | where_exp: "post", "post.date <= site.time" | sort: 'date' | reverse %}
3939
{% for post in posts limit:3 %}
4040
<a class="btn card" href="{{ post.url }}">
4141
<div class="card-image"><img src="{{ post.image }}" alt=""></div>

‎_layouts/news.html‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ <h1 class="name">News</h1>
2929
<div class="news">
3030
<h2 class="title">Posts</h2>
3131
<div class="cards">
32-
{% assign posts = site.news | sort: 'date' | reverse %}
32+
{% assign posts = site.news | where_exp: "post", "post.date <= site.time" | sort: 'date' | reverse %}
3333
{% for post in posts %}
3434
<a class="btn card" href="{{ post.url }}">
3535
<div class="card-image"><img src="{{ post.image }}"></div>
@@ -54,4 +54,4 @@ <h3>{{ post.title }}</h3>
5454

5555
</body>
5656

57-
</html>
57+
</html>

‎_news/library-spotlight-wurst-table-layout.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "Library Spotlight: Supercharge Your WC3 UI Creation"
33
excerpt: Wurst Table Layout has grown into a complete, safe-by-default UI toolkit for Warcraft III maps.
44
date: 2026-06-12
5-
image: /assets/images/news/wurst-ui.png
5+
image: /assets/images/news/ui-thumb.png
66
layout: newsarticle
77
author: Frotty
88
---

‎_news/production-object-editor-safe-calls-and-tooling.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Production-Ready Object Editing and Safer Calls
33
excerpt: A production-ready object editor in VSCode, null-safe calls, smarter project generation, quieter tooling, and major object generation and standard library updates.
44
date: 2026-07-16
5-
image: /assets/images/news/w3u.png
5+
image: /assets/images/news/object-editing-tooling.png
66
layout: newsarticle
77
author: Frotty
88
---

‎_news/warcraft-3-reforged-3-support.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
22
title: Support for Warcraft III 3.0
33
excerpt: Reforged 3.0 joins WurstScript's supported patch targets, with updated tools, standard library support, and new native APIs.
4-
date: 2026-09-13
5-
image: /assets/images/news/wurst-perfect.png
4+
date: 2026-09-13 00:00:00 +0200
5+
image: /assets/images/news/reforged-3.0.png
66
layout: newsarticle
77
author: Frotty
88
---

‎_sass/landing.scss‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@
136136
flex-direction: column;
137137
align-items: center;
138138
width: 100%;
139+
margin-top: 48px;
139140
margin-bottom: 28px;
140141

141142
.title {
1.17 MB
Loading
1.45 MB
Loading

‎assets/images/news/ui-thumb.png‎

258 KB
Loading

‎assets/images/news/w3u.png‎

-17.9 KB
Binary file not shown.

0 commit comments

Comments
 (0)