Skip to content

Commit 7455ab3

Browse files
committed
add imageslug to tutorials page
1 parent 0fa83db commit 7455ab3

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

_includes/tutorials.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
<header>
88
<h5>{{ group }} - Part {{ order }}</h5>
99
<h1>{{ title }}</h1>
10-
{{ group | prepend: "tutorials " | slugify | picture }}
10+
{%- if imageslug %}
11+
{{ imageslug | picture }}
12+
{%- endif %}
1113
</header>
1214
{%- else %}
1315
<h1>{{ title }}</h1>

tutorials/index.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ maintainable components, and best practices for working with Web Components.
1212
{%- assign page = collections[g].first %}
1313
<li>
1414
<a href="{{ page.url }}">
15-
{{ g | prepend: "tutorials " | slugify | picture }}
15+
{%- if page.data.imageslug %}
16+
{{ page.data.imageslug | picture }}
17+
{%- endif %}
1618
</a>
1719
<h3><a href="{{ page.url }}">{{ g }}</a></h3>
1820
<p>{{ page.data.excerpt }}</p>
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
{
2-
"group": "Mastodon Toot Embed"
2+
"group": "Mastodon Toot Embed",
3+
"imageslug": "tutorials-mastodon-toot-embed"
34
}

0 commit comments

Comments
 (0)