Skip to content

News fixes #69

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 30, 2025
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
33 changes: 17 additions & 16 deletions _layouts/news.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,19 @@ <h4>{{ post.title }}</h4>
</div>
{% 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 %}
<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>Presentations
<h3>Blog Posts
<hr>
</h3>

<div class="grid gridNews">
{% for post in category_posts limit:6 %}
{% for post in site.categories.blog limit:6 %}
<div class="g-col-12 g-col-sm-6 g-col-md-4">
<div class="card shadow">
{% if post.image %}
Expand All @@ -74,12 +76,13 @@ <h3>Presentations
<img src="/images/posts/latest-feature.webp" class="card-img-top img-fluid" alt="#">
{% endif %}
<div class="card-body">
<div class="card-text">{{ post.date | date: "%B %d, %Y" }}</div>
<div class="card-tagline">{{ post.tagline }}</div>
<div class="card-title">
<h4>{{ post.title }}</h4>
</div>
<a class="btn btn-primary" href="{{ post.source_url }}">View Presentation</a>
<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>
Expand All @@ -91,19 +94,17 @@ <h4>{{ post.title }}</h4>
</div>
{% 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 %}
<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
<h3>Presentations
<hr>
</h3>

<div class="grid gridNews">
{% for post in site.categories.blog limit:6 %}
{% for post in category_posts limit:6 %}
<div class="g-col-12 g-col-sm-6 g-col-md-4">
<div class="card shadow">
{% if post.image %}
Expand All @@ -112,13 +113,12 @@ <h3>Blog Posts
<img src="/images/posts/latest-feature.webp" class="card-img-top img-fluid" alt="#">
{% endif %}
<div class="card-body">
<div class="card-text">{{ post.date | date: "%B %d, %Y" }}</div>
<div class="card-tagline">{{ post.tagline }}</div>
<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>
<a class="btn btn-primary" href="{{ post.source_url }}">View Presentation</a>
</div>
</div>
</div>
Expand All @@ -130,8 +130,8 @@ <h4>{{ post.title }}</h4>
</div>
{% 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 %}
<div class="section">
<div class="container">
<div class="row">
Expand Down Expand Up @@ -165,4 +165,5 @@ <h4>{{ event.title }}</h4>
</div>
</div>
</div>
{% endif %}

Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion _posts/2025-04-04-neural-gfx-in-an-afternoon.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down