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
此提交包含在:
Nelson Estevão
2017-10-29 13:58:55 +00:00
父節點 6ba0a2447f
當前提交 a0349345d5
共有 2 個檔案被更改,包括 23 行新增13 行删除

8
_data/educations.yml 一般檔案
查看文件

@@ -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

查看文件

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