Skip to content

Commit 339dee7

Browse files
authored
Merge pull request #77 from basiljs/feature/tut-description
feat(adds tutorial description): this adds the descriptions from the …
2 parents 609f21a + 8b8827c commit 339dee7

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tutorials/index.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
---
22
author: admin
33
layout: default
4-
title: tutorials
4+
title: Tutorials
55
order: 4
66
---
77

8-
<ul>
8+
<h1>{{title}}</h1>
9+
10+
<ul class="tutorial-list">
911
{% assign tutos = site.pages | sort : 'url' %}
1012
{% for page in tutos %}
1113
{% if page.layout == 'tutorial' %}
1214
{% if page.title != 'example tutorial page'%}
13-
<li><a href="{{page.url}}">{{page.title}}</a></li>
15+
<li class="tutorial"><a href="{{page.url}}" class="tutorial-title">{{page.title}}</a>{% if page.description %}<p class="tutorial-description">{{page.description}}</p>{% endif %}</li>
1416
{% endif %}
1517
{% endif %}
1618
{% endfor %}

0 commit comments

Comments
 (0)