Skip to content

Commit 6f48b5d

Browse files
author
Matthieu Oger
committed
Tutorial layout: add show_label metadata.
1 parent 8662675 commit 6f48b5d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

_layouts/tutorial.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@
1717

1818
<section class="page-ref">
1919
{% if page.tutorial.link and page.tutorial.name %}
20-
Tutorial: <a href="{{ page.tutorial.link }}">{{ page.tutorial.name }}</a>
20+
{% if page.tutorial.show_label == nil or page.tutorial.show_label == true %}
21+
Tutorial: <a href="{{ page.tutorial.link }}">{{ page.tutorial.name }}</a>
22+
{% else %}
23+
<a href="{{ page.tutorial.link }}">{{ page.tutorial.name }}</a>
24+
{% endif %}
2125
{% endif %}
2226
</section>
2327

0 commit comments

Comments
 (0)