diff --git a/_layouts/home.html b/_layouts/home.html index 40dd713..f5d45bc 100644 --- a/_layouts/home.html +++ b/_layouts/home.html @@ -35,7 +35,7 @@

WurstScript

Latest Updates

- {% 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 %}
diff --git a/_layouts/news.html b/_layouts/news.html index 0f79e42..0f7281f 100644 --- a/_layouts/news.html +++ b/_layouts/news.html @@ -29,7 +29,7 @@

News

Posts

- {% 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 %}
@@ -54,4 +54,4 @@

{{ post.title }}

- \ No newline at end of file + diff --git a/_news/library-spotlight-wurst-table-layout.md b/_news/library-spotlight-wurst-table-layout.md index cf24b91..815f06b 100644 --- a/_news/library-spotlight-wurst-table-layout.md +++ b/_news/library-spotlight-wurst-table-layout.md @@ -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 --- diff --git a/_news/production-object-editor-safe-calls-and-tooling.md b/_news/production-object-editor-safe-calls-and-tooling.md index 0bcfc91..620c931 100644 --- a/_news/production-object-editor-safe-calls-and-tooling.md +++ b/_news/production-object-editor-safe-calls-and-tooling.md @@ -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 --- diff --git a/_news/warcraft-3-reforged-3-support.md b/_news/warcraft-3-reforged-3-support.md index 2e4eadd..377773e 100644 --- a/_news/warcraft-3-reforged-3-support.md +++ b/_news/warcraft-3-reforged-3-support.md @@ -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 --- diff --git a/_sass/landing.scss b/_sass/landing.scss index 37d4d33..2b3112d 100644 --- a/_sass/landing.scss +++ b/_sass/landing.scss @@ -136,6 +136,7 @@ flex-direction: column; align-items: center; width: 100%; + margin-top: 48px; margin-bottom: 28px; .title { diff --git a/assets/images/news/object-editing-tooling.png b/assets/images/news/object-editing-tooling.png new file mode 100644 index 0000000..53244cd Binary files /dev/null and b/assets/images/news/object-editing-tooling.png differ diff --git a/assets/images/news/reforged-3.0.png b/assets/images/news/reforged-3.0.png new file mode 100644 index 0000000..1b11f41 Binary files /dev/null and b/assets/images/news/reforged-3.0.png differ diff --git a/assets/images/news/ui-thumb.png b/assets/images/news/ui-thumb.png new file mode 100644 index 0000000..45534be Binary files /dev/null and b/assets/images/news/ui-thumb.png differ diff --git a/assets/images/news/w3u.png b/assets/images/news/w3u.png deleted file mode 100644 index 568bcc1..0000000 Binary files a/assets/images/news/w3u.png and /dev/null differ diff --git a/assets/images/news/wurst-ui.png b/assets/images/news/wurst-ui.png deleted file mode 100644 index 5520286..0000000 Binary files a/assets/images/news/wurst-ui.png and /dev/null differ diff --git a/tools/check-built-assets.mjs b/tools/check-built-assets.mjs index 7df7f2c..569e7f2 100644 --- a/tools/check-built-assets.mjs +++ b/tools/check-built-assets.mjs @@ -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"); @@ -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));