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 --- diff --git a/_layouts/blogs.html b/_layouts/blogs.html new file mode 100644 index 00000000..142e1d0d --- /dev/null +++ b/_layouts/blogs.html @@ -0,0 +1,92 @@ +--- +layout: default +bodyClass: "news-events" +--- + +
+
+
+
+

{{page.title}}

+
{{content}}
+
+
+
+
+ +{% 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 %} +
+
+
+

Featured Blog +
+

+ +
+ {% for post in category_posts 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..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 %}
@@ -94,6 +95,8 @@

{{ post.title }}

{% if category_posts and category_posts.size > 0 %}
+

Blog Posts
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