Skip to content

Commit 36dd70a

Browse files
Update incorrect link for Vulkanised 2025 (#57)
* Update incorrect link for Vulkanised 2025 Update link, and fix grammatical error in title. * First draft of all blogs page * Cleanup all blog features area --------- Co-authored-by: James Riordon <[email protected]>
1 parent 557dcd9 commit 36dd70a

File tree

6 files changed

+110
-7
lines changed

6 files changed

+110
-7
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
2-
title: What New in Slang
2+
title: What's New in Slang
33
start_date: 2025-02-11 00:00:00
44
end_date: 2025-02-13 23:59:59
55
human_date: February 11-13, 2025
66
tagline: VULKANISED 2025
77
location: Cambridge, UK
88
image: /images/events/2025-vulkanised-event.webp
9-
source_url: https://www.khronos.org/events/siggraph-asia-2024
9+
source_url: https://vulkan.org/events/vulkanised-2025
1010
---

_layouts/blogs.html

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
---
2+
layout: default
3+
bodyClass: "news-events"
4+
---
5+
6+
<div class="container pb-3 pt-3 pt-md-5 pb-md-5">
7+
<div class="row justify-content-start">
8+
<div class="col-12">
9+
<div class="service service-single">
10+
<h1 class="title">{{page.title}}</h1>
11+
<div class="">{{content}}</div>
12+
</div>
13+
</div>
14+
</div>
15+
</div>
16+
17+
{% assign category_posts = site.posts | where_exp: "post", "post.categories contains 'featured' and post.categories
18+
contains 'blog'" %}
19+
{% if category_posts and category_posts.size > 0 %}
20+
<div class="section">
21+
<div class="container">
22+
<div class="row">
23+
<h3>Featured Blog
24+
<hr>
25+
</h3>
26+
27+
<div class="">
28+
{% for post in category_posts limit:1 %}
29+
<div class="col-12">
30+
<div class="row">
31+
<div class="col-6">
32+
{% if post.image %}
33+
<img src="{{ post.image }}" class="card-img-top img-fluid shadow" alt="#">
34+
{% else %}
35+
<img src="/images/posts/latest-feature.webp" class="card-img-top img-fluid shadow" alt="#">
36+
{% endif %}
37+
</div>
38+
<div class="col-6">
39+
<div class="card-body">
40+
<div class="card-text">{{ post.date | date: "%B %d, %Y" }}</div>
41+
<div class="card-title">
42+
<h3>{{ post.title }}</h3>
43+
</div>
44+
<a class="btn btn-primary" href="{{ post.source_url }}">Read Blog Post</a>
45+
</div>
46+
</div>
47+
</div>
48+
</div>
49+
{% endfor %}
50+
</div>
51+
52+
</div>
53+
</div>
54+
</div>
55+
{% endif %}
56+
57+
{% assign category_posts = site.categories.blog %}
58+
{% if category_posts and category_posts.size > 0 %}
59+
<div class="section">
60+
<div class="container">
61+
<div class="row">
62+
<h3>All Blog Posts
63+
<hr>
64+
</h3>
65+
66+
<div class="grid gridNews">
67+
{% for post in site.categories.blog %}
68+
<div class="g-col-12 g-col-sm-6 g-col-md-4">
69+
<div class="card shadow">
70+
{% if post.image %}
71+
<img src="{{ post.image }}" class="card-img-top img-fluid" alt="#">
72+
{% else %}
73+
<img src="/images/posts/latest-feature.webp" class="card-img-top img-fluid" alt="#">
74+
{% endif %}
75+
<div class="card-body">
76+
<div class="card-title">
77+
<h4>{{ post.title }}</h4>
78+
</div>
79+
<div class="card-text">{{ post.date | date: "%B %d, %Y" }}</div>
80+
<a class="btn btn-primary" href="{% if post.source_url and post.source_url != '' %}{{ post.source_url }}{% else %}{{ post.url | relative_url }}{% endif %}">
81+
Read Blog Post
82+
</a>
83+
</div>
84+
</div>
85+
</div>
86+
{% endfor %}
87+
</div>
88+
89+
</div>
90+
</div>
91+
</div>
92+
{% endif %}

_layouts/news.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ <h1 class="title">{{page.title}}</h1>
1414
</div>
1515
</div>
1616

17-
{% assign category_posts = site.categories.featured %}
17+
{% assign category_posts = site.posts | where_exp: "post", "post.categories contains 'news' and post.categories
18+
contains 'featured'" %}
1819
{% if category_posts and category_posts.size > 0 %}
1920
<div class="section">
2021
<div class="container">
@@ -24,7 +25,7 @@ <h3>Featured News
2425
</h3>
2526

2627
<div class="">
27-
{% for post in site.categories.featured limit:1 %}
28+
{% for post in category_posts limit:1 %}
2829
<div class="col-12">
2930
<div class="row">
3031
<div class="col-4">
@@ -94,6 +95,8 @@ <h4>{{ post.title }}</h4>
9495
{% if category_posts and category_posts.size > 0 %}
9596
<div class="section">
9697
<div class="container">
98+
<div class="" style="position:absolute;top:1em; right:1em;"><a class="btn btn-primary" href="/news/blogs">View All
99+
Blog Posts</a></div>
97100
<div class="row">
98101
<h3>Blog Posts
99102
<hr>

assets/css/style.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -222,15 +222,15 @@ blockquote,
222222
}
223223
}
224224

225+
.container {
226+
position: relative;
227+
}
225228

226229
.home-news-bar {
227230
position:relative;
228231
background-color: #f5f5f5;
229232
padding-top: 2rem;
230233
padding-bottom: 2rem;
231-
.container {
232-
position: relative;
233-
}
234234
}
235235

236236
.banner {

news/blogs.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
title: Blog Posts
3+
layout: blogs
4+
description: Shader Slang Archives of Blog posts
5+
permalink: "/news/blogs/"
6+
intro_image_absolute: true
7+
intro_image_hide_on_mobile: false
8+
---
File renamed without changes.

0 commit comments

Comments
 (0)