Преглед на файлове

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 преди 7 години
родител
ревизия
a0349345d5
променени са 2 файла, в които са добавени 23 реда и са изтрити 13 реда
  1. 8 0
      _data/educations.yml
  2. 15 13
      _includes/education.html

+ 8 - 0
_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

+ 15 - 13
_includes/education.html

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