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
4 changes: 2 additions & 2 deletions _events/vulkanised-2024-whats-new-in-slang.md
Original file line number Diff line number Diff line change
@@ -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
---
92 changes: 92 additions & 0 deletions _layouts/blogs.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
---
layout: default
bodyClass: "news-events"
---

<div class="container pb-3 pt-3 pt-md-5 pb-md-5">
<div class="row justify-content-start">
<div class="col-12">
<div class="service service-single">
<h1 class="title">{{page.title}}</h1>
<div class="">{{content}}</div>
</div>
</div>
</div>
</div>

{% 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 %}
<div class="section">
<div class="container">
<div class="row">
<h3>Featured Blog
<hr>
</h3>

<div class="">
{% for post in category_posts limit:1 %}
<div class="col-12">
<div class="row">
<div class="col-6">
{% if post.image %}
<img src="{{ post.image }}" class="card-img-top img-fluid shadow" alt="#">
{% else %}
<img src="/images/posts/latest-feature.webp" class="card-img-top img-fluid shadow" alt="#">
{% endif %}
</div>
<div class="col-6">
<div class="card-body">
<div class="card-text">{{ post.date | date: "%B %d, %Y" }}</div>
<div class="card-title">
<h3>{{ post.title }}</h3>
</div>
<a class="btn btn-primary" href="{{ post.source_url }}">Read Blog Post</a>
</div>
</div>
</div>
</div>
{% endfor %}
</div>

</div>
</div>
</div>
{% endif %}

{% assign category_posts = site.categories.blog %}
{% if category_posts and category_posts.size > 0 %}
<div class="section">
<div class="container">
<div class="row">
<h3>All Blog Posts
<hr>
</h3>

<div class="grid gridNews">
{% for post in site.categories.blog %}
<div class="g-col-12 g-col-sm-6 g-col-md-4">
<div class="card shadow">
{% if post.image %}
<img src="{{ post.image }}" class="card-img-top img-fluid" alt="#">
{% else %}
<img src="/images/posts/latest-feature.webp" class="card-img-top img-fluid" alt="#">
{% endif %}
<div class="card-body">
<div class="card-title">
<h4>{{ post.title }}</h4>
</div>
<div class="card-text">{{ post.date | date: "%B %d, %Y" }}</div>
<a class="btn btn-primary" href="{% if post.source_url and post.source_url != '' %}{{ post.source_url }}{% else %}{{ post.url | relative_url }}{% endif %}">
Read Blog Post
</a>
</div>
</div>
</div>
{% endfor %}
</div>

</div>
</div>
</div>
{% endif %}
7 changes: 5 additions & 2 deletions _layouts/news.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ <h1 class="title">{{page.title}}</h1>
</div>
</div>

{% 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 %}
<div class="section">
<div class="container">
Expand All @@ -24,7 +25,7 @@ <h3>Featured News
</h3>

<div class="">
{% for post in site.categories.featured limit:1 %}
{% for post in category_posts limit:1 %}
<div class="col-12">
<div class="row">
<div class="col-4">
Expand Down Expand Up @@ -94,6 +95,8 @@ <h4>{{ post.title }}</h4>
{% if category_posts and category_posts.size > 0 %}
<div class="section">
<div class="container">
<div class="" style="position:absolute;top:1em; right:1em;"><a class="btn btn-primary" href="/news/blogs">View All
Blog Posts</a></div>
<div class="row">
<h3>Blog Posts
<hr>
Expand Down
6 changes: 3 additions & 3 deletions assets/css/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
8 changes: 8 additions & 0 deletions news/blogs.md
Original file line number Diff line number Diff line change
@@ -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
---
File renamed without changes.