Added _data folder in order to became easier to change profile information

It was also added Education as a variable and now its easier to make it appear or not as well to change information on educations.yml
This commit is contained in:
Nelson Estevão 2017-10-29 13:58:55 +00:00
parent 6ba0a2447f
commit a0349345d5
2 changed files with 23 additions and 13 deletions

8
_data/educations.yml Normal file
View File

@ -0,0 +1,8 @@
- education:
degree: MSc in Computer Science
university: University of London
time: 2011 - 2012
- education:
degree: BSc in Applied Mathematics
university: Bristol University
time: 2007 - 2011

View File

@ -1,13 +1,15 @@
{% if site.data.educations %}
<div class="education-container container-block"> <div class="education-container container-block">
<h2 class="container-block-title">Education</h2> <h2 class="container-block-title">Education</h2>
{% for education in site.data.educations %}
<div class="item"> <div class="item">
<h4 class="degree">MSc in Computer Science</h4> <h4 class="degree">{{ education.degree }}</h4>
<h5 class="meta">University of London</h5> <h5 class="meta">{{ education.university }}</h5>
<div class="time">2011 - 2012</div> <div class="time">{{ education.time }}</div>
</div><!--//item-->
<div class="item">
<h4 class="degree">BSc in Applied Mathematics</h4>
<h5 class="meta">Bristol University</h5>
<div class="time">2007 - 2011</div>
</div><!--//item--> </div><!--//item-->
{% endfor %}
</div><!--//education-container--> </div><!--//education-container-->
{% endif %}