From 37346abe3ce578791f91d29b8c75eecb30bd8a3c Mon Sep 17 00:00:00 2001 From: James Riordon Date: Tue, 22 Apr 2025 11:34:39 -0400 Subject: [PATCH 1/2] Change featured post --- ...nos-hosts-open-source-slang-shading-language-and-compiler.md | 2 +- _posts/2025-04-04-neural-gfx-in-an-afternoon.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/_posts/2024-11-03-khronos-hosts-open-source-slang-shading-language-and-compiler.md b/_posts/2024-11-03-khronos-hosts-open-source-slang-shading-language-and-compiler.md index 93bfaae8..ea48f821 100644 --- a/_posts/2024-11-03-khronos-hosts-open-source-slang-shading-language-and-compiler.md +++ b/_posts/2024-11-03-khronos-hosts-open-source-slang-shading-language-and-compiler.md @@ -2,7 +2,7 @@ layout: post title: "Khronos Hosts Open Source Slang Shading Language and Compiler" date: 2024-11-21 10:00:00 +0000 -categories: [ "news", "featured" ] +categories: [ "news" ] tags: [khronos] author: "The Khronos Group" image: /images/posts/khronos-slang-logo.webp diff --git a/_posts/2025-04-04-neural-gfx-in-an-afternoon.md b/_posts/2025-04-04-neural-gfx-in-an-afternoon.md index aaf8f780..08bce6fd 100644 --- a/_posts/2025-04-04-neural-gfx-in-an-afternoon.md +++ b/_posts/2025-04-04-neural-gfx-in-an-afternoon.md @@ -2,7 +2,7 @@ layout: post title: "Neural Graphics in an Afternoon" date: 2025-04-04 17:00:00 -categories: [ "blog" ] +categories: [ "blog", "featured" ] tags: [slang] author: "Shannon Woods, NVIDIA, Slang Working Group Chair" image: /images/posts/2025-04-04-splatterjeep.webp From d3ffa859ba5b85899b7b2e255a4a78a6fd1ce5c3 Mon Sep 17 00:00:00 2001 From: James Riordon Date: Tue, 22 Apr 2025 11:35:08 -0400 Subject: [PATCH 2/2] Move News above presentations Add conditional to hide events if there are none --- _layouts/news.html | 33 +++++++++++++++++---------------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/_layouts/news.html b/_layouts/news.html index 43626d65..db431cab 100644 --- a/_layouts/news.html +++ b/_layouts/news.html @@ -55,17 +55,19 @@

{{ post.title }}

{% endif %} -{% assign category_posts = site.posts | where_exp: "post", "post.categories contains 'video'" %} +{% assign category_posts = site.categories.blog %} {% if category_posts and category_posts.size > 0 %}
+
View All + Blog Posts
-

Presentations +

Blog Posts

- {% for post in category_posts limit:6 %} + {% for post in site.categories.blog limit:6 %}
{% if post.image %} @@ -74,12 +76,13 @@

Presentations # {% endif %}
-
{{ post.date | date: "%B %d, %Y" }}
-
{{ post.tagline }}

{{ post.title }}

- View Presentation +
{{ post.date | date: "%B %d, %Y" }}
+ + Read Blog Post +

@@ -91,19 +94,17 @@

{{ post.title }}

{% endif %} -{% assign category_posts = site.categories.blog %} +{% assign category_posts = site.posts | where_exp: "post", "post.categories contains 'video'" %} {% if category_posts and category_posts.size > 0 %}
-
-

Blog Posts +

Presentations

- {% for post in site.categories.blog limit:6 %} + {% for post in category_posts limit:6 %}
{% if post.image %} @@ -112,13 +113,12 @@

Blog Posts # {% endif %}
+
{{ post.date | date: "%B %d, %Y" }}
+
{{ post.tagline }}

{{ post.title }}

-
{{ post.date | date: "%B %d, %Y" }}
- - Read Blog Post - + View Presentation

@@ -130,8 +130,8 @@

{{ post.title }}

{% endif %} - {% assign upcoming_and_ongoing_events = site.events | where_exp: "event", "event.end_date > site.time" %} +{% if upcoming_and_ongoing_events and upcoming_and_ongoing_events.size > 0 %}
@@ -165,4 +165,5 @@

{{ event.title }}

+{% endif %}