Skip to content

Commit d2e8ca0

Browse files
authored
Update animated code image to avif format. (#53)
* Update animated code image to avif. * Fix links.
1 parent 7462f26 commit d2e8ca0

File tree

6 files changed

+14
-12
lines changed

6 files changed

+14
-12
lines changed

_config.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
baseurl: '/'
21
permalink: pretty
32
title: 'Shader Slang'
43

_includes/header.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<div class='header'>
22
<div class="container">
33
<div class="logo">
4-
<a href="{{ site.url }}{{ site.baseurl }}"><img width="{{ site.logo.desktop_width }}" height="{{ site.logo.desktop_height }}" alt="{{ site.title }}" src="{{ site.logo.desktop | relative_url }}" /></a>
4+
<a href="{{ site.baseurl }}"><img width="{{ site.logo.desktop_width }}" height="{{ site.logo.desktop_height }}" alt="{{ site.title }}" src="{{ site.logo.desktop | relative_url }}" /></a>
55
</div>
66
<div class="logo-mobile">
7-
<a href="{{ site.url }}{{ site.baseurl }}"><img width="{{ site.logo.mobile_width }}" height="{{ site.logo.mobile_height }}" alt="{{ site.title }}" src="{{ site.logo.mobile | relative_url }}" /></a>
7+
<a href="{{ site.baseurl }}"><img width="{{ site.logo.mobile_width }}" height="{{ site.logo.mobile_height }}" alt="{{ site.title }}" src="{{ site.logo.mobile | relative_url }}" /></a>
88
</div>
99
{% include main-menu.html %}
1010
{% include hamburger.html %}

_includes/home-banner.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,10 @@ <h1>The Slang Shading Language and Compiler</h1>
4343
</div>
4444
</div>
4545
<div class="col-md-6 col-sm-12">
46-
<img alt="" src="/images/slang-example-code.gif" class="img-fluid">
46+
<picture>
47+
<source srcset="{{ site.baseurl }}/images/slang-example-code-light.avifs" type="image/avif">
48+
<img src="{{ site.baseurl }}/images/slang-example-code.gif" class="img-fluid">
49+
</picture>
4750
</div>
4851
</div>
4952
</div>
72 KB
Binary file not shown.
73.2 KB
Binary file not shown.

index.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ description: Empowering real-time graphics developers with advanced language fea
7676
</div>
7777

7878
<div class="col-sm-7">
79-
<img class="img-fluid" src="{{ site.url }}{{ site.baseurl }}/images/write-once.webp" />
79+
<img class="img-fluid" src="{{ site.baseurl }}/images/write-once.webp" />
8080
</div>
8181
</div>
8282
</div>
@@ -87,7 +87,7 @@ description: Empowering real-time graphics developers with advanced language fea
8787
<hr>
8888
</h3>
8989
<div class="col-sm-6">
90-
<img class="img-fluid" src="{{ site.url }}{{ site.baseurl }}/images/latest-feature.webp" />
90+
<img class="img-fluid" src="{{ site.baseurl }}/images/latest-feature.webp" />
9191

9292
</div>
9393

@@ -121,7 +121,7 @@ description: Empowering real-time graphics developers with advanced language fea
121121
<hr>
122122
</h3>
123123
<div class="col-sm-6">
124-
<img class="img-fluid" src="{{ site.url }}{{ site.baseurl }}/images/autodiff.jpg" />
124+
<img class="img-fluid" src="{{ site.baseurl }}/images/autodiff.jpg" />
125125

126126
</div>
127127

@@ -139,7 +139,7 @@ description: Empowering real-time graphics developers with advanced language fea
139139
<hr>
140140
</h3>
141141
<div class="col-sm-6">
142-
<img class="img-fluid" src="{{ site.url }}{{ site.baseurl }}/images/slangpy.jpg" />
142+
<img class="img-fluid" src="{{ site.baseurl }}/images/slangpy.jpg" />
143143
</div>
144144
<div class="col-sm-6">
145145
<p>Slang code can be integrated directly into your Python/PyTorch training loop with SlangPy. You can implement complex control-divergent algorithms, sparse data structures, make use of advanced GPU features in Slang, and call your Slang code from Python without any boilerplate with the SlangPy package.</p>
@@ -153,7 +153,7 @@ description: Empowering real-time graphics developers with advanced language fea
153153
<hr>
154154
</h3>
155155
<div class="col-12">
156-
<img class="img-fluid" src="/images/modules-1.jpg" />
156+
<img class="img-fluid" src="{{ site.baseurl }}/images/modules-1.jpg" />
157157

158158
</div>
159159

@@ -174,7 +174,7 @@ description: Empowering real-time graphics developers with advanced language fea
174174
<hr>
175175
</h3>
176176
<div class="col-sm-6">
177-
<img class="img-fluid" src="{{ site.url }}{{ site.baseurl }}/images/generics.jpg" />
177+
<img class="img-fluid" src="{{ site.baseurl }}/images/generics.jpg" />
178178

179179
</div>
180180

@@ -197,7 +197,7 @@ description: Empowering real-time graphics developers with advanced language fea
197197
<hr>
198198
</h3>
199199
<div class="col-sm-6">
200-
<img class="img-fluid" src="{{ site.url }}{{ site.baseurl }}/images/hlsl-compatibility.jpg" />
200+
<img class="img-fluid" src="{{ site.baseurl }}/images/hlsl-compatibility.jpg" />
201201

202202
</div>
203203

@@ -219,7 +219,7 @@ description: Empowering real-time graphics developers with advanced language fea
219219
<hr>
220220
</h3>
221221
<div class="col-sm-6">
222-
<img class="img-fluid" src="{{ site.url }}{{ site.baseurl }}/images/tooling-support.webp" />
222+
<img class="img-fluid" src="{{ site.baseurl }}/images/tooling-support.webp" />
223223

224224
</div>
225225

0 commit comments

Comments
 (0)