From 83f8d0d908c0ee55455ded2fcfd5d40581c4fc3b Mon Sep 17 00:00:00 2001 From: MilesHarding <186185170+MilesHarding@users.noreply.github.com> Date: Wed, 19 Feb 2025 10:47:56 -0500 Subject: [PATCH 1/3] Update incorrect link for Vulkanised 2025 Update link, and fix grammatical error in title. --- _events/vulkanised-2024-whats-new-in-slang.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_events/vulkanised-2024-whats-new-in-slang.md b/_events/vulkanised-2024-whats-new-in-slang.md index 7c62e539..08888191 100644 --- a/_events/vulkanised-2024-whats-new-in-slang.md +++ b/_events/vulkanised-2024-whats-new-in-slang.md @@ -1,10 +1,10 @@ --- -title: What New in Slang +title: What's New in Slang start_date: 2025-02-11 00:00:00 end_date: 2025-02-13 23:59:59 human_date: February 11-13, 2025 tagline: VULKANISED 2025 location: Cambridge, UK image: /images/events/2025-vulkanised-event.webp -source_url: https://www.khronos.org/events/siggraph-asia-2024 +source_url: https://vulkan.org/events/vulkanised-2025 --- From 88472fb0ec87740d5e6d9d3009a4d6360461353b Mon Sep 17 00:00:00 2001 From: James Riordon Date: Wed, 19 Feb 2025 11:52:20 -0500 Subject: [PATCH 2/3] First draft of all blogs page --- _layouts/blogs.html | 91 +++++++++++++++++++ _layouts/news.html | 2 + _posts/2024-12-17-slang-support-in-godbolt.md | 2 +- assets/css/style.scss | 6 +- news/blogs.md | 8 ++ news.md => news/index.md | 0 6 files changed, 105 insertions(+), 4 deletions(-) create mode 100644 _layouts/blogs.html create mode 100644 news/blogs.md rename news.md => news/index.md (100%) diff --git a/_layouts/blogs.html b/_layouts/blogs.html new file mode 100644 index 00000000..25c6019f --- /dev/null +++ b/_layouts/blogs.html @@ -0,0 +1,91 @@ +--- +layout: default +bodyClass: "news-events" +--- + +
+
+
+
+

{{page.title}}

+
{{content}}
+
+
+
+
+ +{% assign category_posts = site.posts | where: "categories", "featured" | where: "categories", "blog" %} +{% if category_posts and category_posts.size > 0 %} +
+
+
+

Featured Blog +
+

+ +
+ {% for post in site.categories.featured limit:1 %} +
+
+
+ {% if post.image %} + # + {% else %} + # + {% endif %} +
+
+
+
{{ post.date | date: "%B %d, %Y" }}
+
+

{{ post.title }}

+
+ Read Blog Post +
+
+
+
+ {% endfor %} +
+ +
+
+
+{% endif %} + +{% assign category_posts = site.categories.blog %} +{% if category_posts and category_posts.size > 0 %} +
+
+
+

All Blog Posts +
+

+ +
+ {% for post in site.categories.blog %} +
+
+ {% if post.image %} + # + {% else %} + # + {% endif %} +
+
+

{{ post.title }}

+
+
{{ post.date | date: "%B %d, %Y" }}
+ + Read Blog Post + +
+
+
+ {% endfor %} +
+ +
+
+
+{% endif %} diff --git a/_layouts/news.html b/_layouts/news.html index 9dbb9c75..e389e4e9 100644 --- a/_layouts/news.html +++ b/_layouts/news.html @@ -94,6 +94,8 @@

{{ post.title }}

{% if category_posts and category_posts.size > 0 %}
+
View All + Blog Posts

Blog Posts
diff --git a/_posts/2024-12-17-slang-support-in-godbolt.md b/_posts/2024-12-17-slang-support-in-godbolt.md index efa1d49e..4e5a3aa3 100644 --- a/_posts/2024-12-17-slang-support-in-godbolt.md +++ b/_posts/2024-12-17-slang-support-in-godbolt.md @@ -2,7 +2,7 @@ layout: post title: "Slang Support Now Available on Godbolt Compiler Explorer" date: 2024-12-17 18:00:00 +0000 -categories: [ "blog" ] +categories: [ "blog", "featured" ] tags: [slang] author: "Shannon Woods, NVIDIA, Slang Working Group Chair" image: /images/posts/2024-12-17-slang-support-in-godbolt.webp diff --git a/assets/css/style.scss b/assets/css/style.scss index df07ca14..2092f896 100644 --- a/assets/css/style.scss +++ b/assets/css/style.scss @@ -222,15 +222,15 @@ blockquote, } } + .container { + position: relative; + } .home-news-bar { position:relative; background-color: #f5f5f5; padding-top: 2rem; padding-bottom: 2rem; - .container { - position: relative; - } } .banner { diff --git a/news/blogs.md b/news/blogs.md new file mode 100644 index 00000000..970781ff --- /dev/null +++ b/news/blogs.md @@ -0,0 +1,8 @@ +--- +title: Blog Posts +layout: blogs +description: Shader Slang Archives of Blog posts +permalink: "/news/blogs/" +intro_image_absolute: true +intro_image_hide_on_mobile: false +--- diff --git a/news.md b/news/index.md similarity index 100% rename from news.md rename to news/index.md From fbec487ea31eb76fef1a5cb715d3e749d1c9379a Mon Sep 17 00:00:00 2001 From: James Riordon Date: Wed, 19 Feb 2025 12:05:34 -0500 Subject: [PATCH 3/3] Cleanup all blog features area --- _layouts/blogs.html | 5 +++-- _layouts/news.html | 5 +++-- _posts/2024-12-17-slang-support-in-godbolt.md | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/_layouts/blogs.html b/_layouts/blogs.html index 25c6019f..142e1d0d 100644 --- a/_layouts/blogs.html +++ b/_layouts/blogs.html @@ -14,7 +14,8 @@

{{page.title}}

-{% assign category_posts = site.posts | where: "categories", "featured" | where: "categories", "blog" %} +{% assign category_posts = site.posts | where_exp: "post", "post.categories contains 'featured' and post.categories +contains 'blog'" %} {% if category_posts and category_posts.size > 0 %}
@@ -24,7 +25,7 @@

Featured Blog

- {% for post in site.categories.featured limit:1 %} + {% for post in category_posts limit:1 %}
diff --git a/_layouts/news.html b/_layouts/news.html index e389e4e9..769b8f97 100644 --- a/_layouts/news.html +++ b/_layouts/news.html @@ -14,7 +14,8 @@

{{page.title}}

-{% assign category_posts = site.categories.featured %} +{% assign category_posts = site.posts | where_exp: "post", "post.categories contains 'news' and post.categories +contains 'featured'" %} {% if category_posts and category_posts.size > 0 %}
@@ -24,7 +25,7 @@

Featured News

- {% for post in site.categories.featured limit:1 %} + {% for post in category_posts limit:1 %}
diff --git a/_posts/2024-12-17-slang-support-in-godbolt.md b/_posts/2024-12-17-slang-support-in-godbolt.md index 4e5a3aa3..efa1d49e 100644 --- a/_posts/2024-12-17-slang-support-in-godbolt.md +++ b/_posts/2024-12-17-slang-support-in-godbolt.md @@ -2,7 +2,7 @@ layout: post title: "Slang Support Now Available on Godbolt Compiler Explorer" date: 2024-12-17 18:00:00 +0000 -categories: [ "blog", "featured" ] +categories: [ "blog" ] tags: [slang] author: "Shannon Woods, NVIDIA, Slang Working Group Chair" image: /images/posts/2024-12-17-slang-support-in-godbolt.webp