now its easier to edit interests and languages

This commit is contained in:
Nelson Estevão 2017-10-29 15:08:28 +00:00
parent ddaca6f4c7
commit 5596d42cc6
4 changed files with 38 additions and 13 deletions

6
_data/interests.yml Normal file
View File

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

9
_data/languages.yml Normal file
View File

@ -0,0 +1,9 @@
- language:
idiom: English
level: Native
- language:
idiom: French
level: Professional
- language:
idiom: Spanish
level: Professional

View File

@ -1,8 +1,13 @@
{% if site.data.interests %}
<div class="interests-container container-block"> <div class="interests-container container-block">
<h2 class="container-block-title">Interests</h2>
<ul class="list-unstyled interests-list"> <h2 class="container-block-title">Interests</h2>
<li>Climbing</li>
<li>Snowboarding</li> <ul class="list-unstyled interests-list">
<li>Cooking</li> {% for interest in site.data.interests %}
</ul> <li>{{ interest.item }}</li>
{% endfor %}
</ul>
</div><!--//interests--> </div><!--//interests-->
{% endif %}

View File

@ -1,8 +1,13 @@
{% if site.data.languages %}
<div class="languages-container container-block"> <div class="languages-container container-block">
<h2 class="container-block-title">Languages</h2>
<ul class="list-unstyled interests-list"> <h2 class="container-block-title">Languages</h2>
<li>English <span class="lang-desc">(Native)</span></li>
<li>French <span class="lang-desc">(Professional)</span></li> <ul class="list-unstyled interests-list">
<li>Spanish <span class="lang-desc">(Professional)</span></li> {%for language in site.data.languages %}
</ul> <li>{{ language.idiom }} <span class="lang-desc">({{ language.level }})</span></li>
{% endfor %}
</ul>
</div><!--//interests--> </div><!--//interests-->
{% endif %}