forked from robert/robertjohnson.work
Merge pull request #39 from nelsonmestevao/master
add url variable to interests
This commit is contained in:
commit
b3ad317648
@ -1,6 +1,9 @@
|
|||||||
- interest:
|
- interest:
|
||||||
item: Climbing
|
item: Climbing
|
||||||
|
link:
|
||||||
- interest:
|
- interest:
|
||||||
item: Snowboarding
|
item: Snowboarding
|
||||||
|
link:
|
||||||
- interest:
|
- interest:
|
||||||
item: Cooking
|
item: Cooking
|
||||||
|
link:
|
||||||
|
@ -5,7 +5,13 @@
|
|||||||
|
|
||||||
<ul class="list-unstyled interests-list">
|
<ul class="list-unstyled interests-list">
|
||||||
{% for interest in site.data.interests %}
|
{% for interest in site.data.interests %}
|
||||||
|
|
||||||
|
{% if interest.link %}
|
||||||
|
<li><a href="{{ interest.link }}">{{ interest.item }}</a></li>
|
||||||
|
{% else %}
|
||||||
<li>{{ interest.item }}</li>
|
<li>{{ interest.item }}</li>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user