|
4 | 4 | include_masonry: "true" |
5 | 5 | --- |
6 | 6 |
|
7 | | -{% assign tutorials=site.pages | where: "category", "tutorials" | sort: "subject" | group_by: "subject" %} |
| 7 | +These tutorials will walk you through working with a wide range of hardware and |
| 8 | +software. If you're looking for help with a specific goal, this is the place to |
| 9 | +look! |
8 | 10 |
|
9 | 11 | <div class="row masonry-container" data-masonry='{ "itemSelector": ".tutorial-panel", "columnWidth": ".grid-sizer", "percentPosition": true }'> |
10 | 12 | <div class="grid-sizer col-xs-12 col-sm-6 col-md-6"></div> |
11 | | - {% for group in tutorials %} |
12 | | - {% unless group.name == "" %} |
13 | | - <div class="col-xs-12 col-sm-6 col-md-6 tutorial-panel"> |
14 | | - <div class="panel panel-default rounded-panel" id="group-{{ group.name | downcase | replace: ' ','-' }}"> |
15 | | - <div class="panel-heading">{{ group.name }}</div> |
16 | | - <div class="panel-body"> |
17 | | - <ul> |
18 | | - {% assign items = group.items | sort: "title" %} |
19 | | - {% for item in items %} |
20 | | - <li> |
21 | | - <a href="{{ item.url }}">{{ item.title }}</a> |
22 | | - {% if item.subtitle %} |
23 | | - ({{ item.subtitle }}) |
24 | | - {% endif %} |
25 | | - </li> |
26 | | - {% endfor %} |
27 | | - </ul> |
28 | | - </div> |
| 13 | + {% for group in site.data.tutorial-groups %} |
| 14 | + <div class="col-xs-12 col-sm-6 col-md-6 tutorial-panel"> |
| 15 | + <div class="panel panel-default rounded-panel" id="group-{{ group.name | downcase | replace: ' ','-' }}"> |
| 16 | + <div class="panel-heading">{{ group.title }}</div> |
| 17 | + <div class="panel-body"> |
| 18 | + <p> |
| 19 | + {{ group.description }} |
| 20 | + </p> |
| 21 | + <ul> |
| 22 | + {% assign items = site.pages | where: "category", "tutorials" | where: "subject",group.id %} |
| 23 | + {% for item in items %} |
| 24 | + <li> |
| 25 | + <a href="{{ item.url }}">{{ item.title }}</a> |
| 26 | + {% if item.subtitle %} |
| 27 | + ({{ item.subtitle }}) |
| 28 | + {% endif %} |
| 29 | + </li> |
| 30 | + {% endfor %} |
| 31 | + </ul> |
29 | 32 | </div> |
30 | 33 | </div> |
31 | | - {% endunless %} |
| 34 | + </div> |
32 | 35 | {% endfor %} |
33 | 36 | </div> |
0 commit comments