Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion _layouts/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ <h1 class="name">WurstScript</h1>
<div class="news">
<h2 class="title">Latest Updates</h2>
<div class="cards">
{% assign posts = site.news | sort: 'date' | reverse %}
{% assign posts = site.news | where_exp: "post", "post.date <= site.time" | sort: 'date' | reverse %}
{% for post in posts limit:3 %}
<a class="btn card" href="{{ post.url }}">
<div class="card-image"><img src="{{ post.image }}" alt=""></div>
Expand Down
4 changes: 2 additions & 2 deletions _layouts/news.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ <h1 class="name">News</h1>
<div class="news">
<h2 class="title">Posts</h2>
<div class="cards">
{% assign posts = site.news | sort: 'date' | reverse %}
{% assign posts = site.news | where_exp: "post", "post.date <= site.time" | sort: 'date' | reverse %}
{% for post in posts %}
<a class="btn card" href="{{ post.url }}">
<div class="card-image"><img src="{{ post.image }}"></div>
Expand All @@ -54,4 +54,4 @@ <h3>{{ post.title }}</h3>

</body>

</html>
</html>
2 changes: 1 addition & 1 deletion _news/library-spotlight-wurst-table-layout.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: "Library Spotlight: Supercharge Your WC3 UI Creation"
excerpt: Wurst Table Layout has grown into a complete, safe-by-default UI toolkit for Warcraft III maps.
date: 2026-06-12
image: /assets/images/news/wurst-ui.png
image: /assets/images/news/ui-thumb.png
layout: newsarticle
author: Frotty
---
Expand Down
2 changes: 1 addition & 1 deletion _news/production-object-editor-safe-calls-and-tooling.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Production-Ready Object Editing and Safer Calls
excerpt: A production-ready object editor in VSCode, null-safe calls, smarter project generation, quieter tooling, and major object generation and standard library updates.
date: 2026-07-16
image: /assets/images/news/w3u.png
image: /assets/images/news/object-editing-tooling.png
layout: newsarticle
author: Frotty
---
Expand Down
4 changes: 2 additions & 2 deletions _news/warcraft-3-reforged-3-support.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
title: Support for Warcraft III 3.0
excerpt: Reforged 3.0 joins WurstScript's supported patch targets, with updated tools, standard library support, and new native APIs.
date: 2026-09-13
image: /assets/images/news/wurst-perfect.png
date: 2026-09-13 00:00:00 +0200
image: /assets/images/news/reforged-3.0.png
layout: newsarticle
author: Frotty
---
Expand Down
1 change: 1 addition & 0 deletions _sass/landing.scss
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@
flex-direction: column;
align-items: center;
width: 100%;
margin-top: 48px;
margin-bottom: 28px;

.title {
Expand Down
Binary file added assets/images/news/object-editing-tooling.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/news/reforged-3.0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/news/ui-thumb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed assets/images/news/w3u.png
Binary file not shown.
Binary file removed assets/images/news/wurst-ui.png
Binary file not shown.
14 changes: 14 additions & 0 deletions tools/check-built-assets.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ if (!existsSync(site) || !statSync(site).isDirectory()) {
collectSiteFiles(site);

const missing = new Set();
const missingNewsPages = new Set();
let checked = 0;
for (const htmlFile of htmlFiles) {
const html = readFileSync(htmlFile, "utf8");
Expand All @@ -43,12 +44,25 @@ for (const htmlFile of htmlFiles) {
missing.add(`${reference} (from ${relative(site, htmlFile)})`);
}
}
const newsReferences = html.matchAll(
/href=["'](\/news\/[^"'?#]+\.html)/g
);
for (const [, reference] of newsReferences) {
const page = join(site, reference.slice(1));
if (!existsSync(page)) {
missingNewsPages.add(`${reference} (from ${relative(site, htmlFile)})`);
}
}
}

if (missing.size > 0) {
throw new Error(`Missing built assets:\n${[...missing].join("\n")}`);
}

if (missingNewsPages.size > 0) {
throw new Error(`Missing built news pages:\n${[...missingNewsPages].join("\n")}`);
}

const forbiddenDashes = textFiles
.filter((file) => /[\u2013\u2014]/.test(readFileSync(file, "utf8")))
.map((file) => relative(site, file));
Expand Down