Merge pull request #39 from nelsonmestevao/master

add url variable to interests
This commit is contained in:
sharath Kumar 2017-11-21 10:47:56 +05:30 committed by GitHub
commit b3ad317648
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 1 deletions

View File

@ -1,6 +1,9 @@
- interest:
item: Climbing
link:
- interest:
item: Snowboarding
link:
- interest:
item: Cooking
link:

View File

@ -5,7 +5,13 @@
<ul class="list-unstyled interests-list">
{% for interest in site.data.interests %}
<li>{{ interest.item }}</li>
{% if interest.link %}
<li><a href="{{ interest.link }}">{{ interest.item }}</a></li>
{% else %}
<li>{{ interest.item }}</li>
{% endif %}
{% endfor %}
</ul>