Skip to content

Commit 89812bb

Browse files
Small fixes post-launch (#27)
- Add button to launch slide deck on homepage - Add Bsky social button to footer - Reduce size of footer legal links - Add new field to blog posts to allow offsetting post date without changing URL - Add missing space on launch blog Co-authored-by: James Riordon <jriordon@outofcontrol.ca>
1 parent 624833d commit 89812bb

File tree

7 files changed

+18
-8
lines changed

7 files changed

+18
-8
lines changed

_data/social.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"image": "images/social/mastodon-dark.svg"
1616
},
1717
{
18-
"name": "",
18+
"name": "Bsky",
1919
"link": "https://bsky.app/profile/shader-slang.bsky.social",
2020
"image": "images/social/bluesky.svg"
2121
}

_includes/footer.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<div class="container">
44
<p class="visually-hidden-focusable">Page footer starts here. <a href="#backtop">Return to main content</a></p>
55
<div class="row">
6-
<div class="col-xs-12 col-sm-10 footer_branding">
6+
<div class="col-xs-12 col-sm-9 footer_branding">
77
<figure><a href="https://www.khronos.org/"><img src="/images/khronos-logo.svg"
88
alt="Khronos Logo"></a></figure>
99
<p>Slang is now under open-governance at Khronos to encourage and enable broad industry collaboration to propel its
@@ -13,7 +13,7 @@
1313
<ul>
1414
{% for item in mainmenu %}
1515
<li class="{% if item.url == page.url %}active{% endif %}">
16-
<a href="{{ item.url | relative_url }}">{{ item.name }}</a>
16+
<small><a href="{{ item.url | relative_url }}">{{ item.name }}</a></small>
1717
</li>
1818
{% endfor %}
1919
</ul>
@@ -22,7 +22,7 @@
2222
</div>
2323

2424

25-
<div class="col-xs-12 col-sm-2 footer_details">
25+
<div class="col-xs-12 col-sm-3 footer_details">
2626
<h4>Community</h4>
2727
{% if site.data.social %} {% include social.html %} {% endif %}
2828

_includes/home-banner.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ <h3>About Slang
5454
<hr>
5555
</h3>
5656
<div class="col-12">
57-
The Slang shading language and compiler is a proven open-source technology empowering real-time graphics
57+
<p>The Slang shading language and compiler is a proven open-source technology empowering real-time graphics
5858
developers with flexible, innovative features that complement existing shading languages, including
5959
neural
6060
computation inside graphics shaders. Slang’s support for modular code significantly simplifies the
@@ -63,7 +63,8 @@ <h3>About Slang
6363
and GLSL
6464
shaders. The Slang compiler also supports multiple backend targets for portable code deployment across
6565
diverse
66-
APIs and platforms.
66+
APIs and platforms.</p>
67+
<a class="btn btn-primary" href="https://members.khronos.org/document/dl/33712">View the Slang Launch Deck</a>
6768
</div>
6869
</div>
6970
</div>

_includes/home-news-bar.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,11 @@ <h3>What's New
2020
<div class="card-title">
2121
<h4>{{ post.title }}</h4>
2222
</div>
23+
{% if post.human_date and post.human_date != '' %}
24+
<div class="card-text">{{ post.human_date | date_to_string }}</div>
25+
{% else %}
2326
<div class="card-text">{{ post.date | date_to_string }}</div>
27+
{% endif %}
2428
<a class="btn btn-primary" href="{% if post.source_url and post.source_url != '' %}{{ post.source_url }}{% else %}{{ post.url | relative_url }}{% endif %}">
2529

2630
{% if post.categories contains 'press_release' %}Read Press Release

_layouts/post.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@
1111

1212
<h1>{{ page.title }}<hr></h1>
1313
<div class="metadata">
14+
{% if page.human_date and page.human_date != '' %}
15+
<div class="date"> {{ page.human_date | date: "%B %d, %Y"}}</div>
16+
{% else %}
1417
<div class="date"> {{ page.date | date: "%B %d, %Y"}}</div>
18+
{% endif %}
1519
<div class="author">{{ page.author }}</div>
1620
</div>
1721

_posts/2024-11-03-khronos-hosts-open-source-slang-shading-language-and-compiler.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
layout: post
33
title: "Khronos Hosts Open Source Slang Shading Language and Compiler"
4-
date: 2024-11-03 10:00:00 +0000
4+
date: 2024-11-21 10:00:00 +0000
55
categories: [ "news", "featured" ]
66
tags: [khronos]
77
author: "The Khronos Group"

_posts/2024-11-20-theres-a-lot-going-on-with-slang.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ categories: [ "blog" ]
66
tags: [slang]
77
author: "Shannon Woods, NVIDIA, Slang Working Group Chair"
88
image: /images/posts/2024-11-slang-blog-falcor-tiger.webp
9+
human_date: "November 21, 2024"
910
---
1011

1112
If you’ve been following Slang developments, you’ve probably noticed a lot of changes happening recently! We’ve been hard at work, and we’re excited to share the latest updates with the Slang community.
@@ -24,7 +25,7 @@ One of the biggest enhancements in recent months is [support for Apple's Metal s
2425

2526
### WebGPU Support
2627

27-
But Metal Shading Language is not the only new backend, Slang can now also [compile to WGSL](https://shader-slang.com/slang/user-guide/wgsl-target-specific) for WebGPU! WebGPU is the latest graphics API for the web, providing high-performance and flexible access to GPU capabilities. With Slang's new WebGPU support, developers can now compile and run Slang shaders directly in the browser,making it easier than ever to create immersive and interactive web experiences.
28+
But Metal Shading Language is not the only new backend, Slang can now also [compile to WGSL](https://shader-slang.com/slang/user-guide/wgsl-target-specific) for WebGPU! WebGPU is the latest graphics API for the web, providing high-performance and flexible access to GPU capabilities. With Slang's new WebGPU support, developers can now compile and run Slang shaders directly in the browser, making it easier than ever to create immersive and interactive web experiences.
2829

2930
### Live Playground
3031

0 commit comments

Comments
 (0)