File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -25,8 +25,6 @@ <h1>Learn from examples!</h1>
25
25
< div class ="columns full ">
26
26
< h2 id ="categories "> Categories</ h2 >
27
27
< div class ="grid-150 " style ="font-size: 0.9em; grid-gap: 0 1rem; ">
28
-
29
-
30
28
{% for category in all_categories %}
31
29
< a href ="#{{ category }} "> {{ category | capitalize }}</ a >
32
30
{% endfor %}
@@ -41,7 +39,12 @@ <h3 id="{{ category }}">{{ category | capitalize }}</h3>
41
39
< div class ="grid-250 ">
42
40
{%- assign examples = site.data.examplesindex | where: "category", category -%}
43
41
{%- for example in examples -%}
44
- {% include learn_card.html title=example.title description=example.brief link=example.path min-height="250px" %}
42
+ {%- if example.thumbnail -%}
43
+ {%- assign image = example.path | append: "/" | append: example.thumbnail -%}
44
+ {%- else -%}
45
+ {%- assign image = "" -%}
46
+ {%- endif -%}
47
+ {% include learn_card.html title=example.title description=example.brief link=example.path min-height="250px" image=image %}
45
48
{%- endfor -%}
46
49
</ div >
47
50
< p > ˄ < a href ="#categories "> Top</ a > </ p >
Original file line number Diff line number Diff line change 1
1
---
2
2
layout : api
3
3
branch : alpha
4
- ref : resource-lua
5
- language : Lua
4
+ ref : resource-cpp
5
+ language : C++
6
6
title : API reference (Resource)
7
7
---
8
8
{% include anchor_headings.html html=content %}
You can’t perform that action at this time.
0 commit comments