show education either in main or sidebar

combined education-section.html and education.html into one.
This commit is contained in:
Stefan Forstenlechner 2018-02-07 17:12:51 +00:00
parent 2dd2b4eec6
commit ab20595977
4 changed files with 44 additions and 42 deletions

View File

@ -2,7 +2,7 @@
title: My Resume
url: 'http://webjeda.com'
baseurl: '/online-cv' #change it according to your repository name
about: true # set to false or comment line if you want to remove the "How to use?" in the sidebar
about: True # set to False or comment line if you want to remove the "How to use?" in the sidebar
# Enable one of these styles by removing #. Style will be applied only after restarting the build or serve.
#style: styles-2
@ -29,7 +29,8 @@ github: sharu725
twitter: '@webjeda'
#Update all the sections by editing the files inside _data folder.
education_in_main: true # set to false or comment line if you do not want an education section in main
# uncomment the next line, if you want the education section displayed in main instead of the sidebar
#education_in_main: True
# Tracker
analytics: UA-83979019-1

View File

@ -1,29 +0,0 @@
{% if site.data.educations %}
<section class="section educations-section">
<h2 class="section-title"><i class="fa fa-graduation-cap"></i>Education</h2>
{% for education in site.data.educations %}
<div class="item">
<div class="meta">
<div class="upper-row">
<h3 class="degree">{{ education.degree }}</h3>
<div class="time">{{ education.time }}</div>
</div><!--//upper-row-->
<div class="university">{{ education.university }}</div>
</div><!--//meta-->
{% if education.details %}
<div class="details">
<p>{{ education.details }}</p>
</div><!--//details-->
{% endif %}
</div><!--//item-->
{% endfor %}
</section><!--//section-->
{% endif %}

View File

@ -1,15 +1,43 @@
{% if site.data.educations %}
<div class="education-container container-block">
{% if site.education_in_main %}
<h2 class="container-block-title">Education</h2>
<section class="section educations-section">
<h2 class="section-title"><i class="fa fa-graduation-cap"></i>Education</h2>
{% for education in site.data.educations %}
<div class="item">
{% 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 class="meta">
</div><!--//education-container-->
<div class="upper-row">
<h3 class="degree">{{ education.degree }}</h3>
<div class="time">{{ education.time }}</div>
</div><!--//upper-row-->
<div class="university">{{ education.university }}</div>
</div><!--//meta-->
{% if education.details %}
<div class="details">
<p>{{ education.details }}</p>
</div><!--//details-->
{% endif %}
</div><!--//item-->
{% endfor %}
</section><!--//section-->
{% else %}
<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 %}
{% endif %}

View File

@ -45,7 +45,9 @@
</ul>
</div><!--//contact-container-->
{% include education.html %}
{% if site.education_in_main == null or site.education_in_main == false %}
{% include education.html %}
{% endif %}
{% include language.html %}
{% include interests.html %}
{% if site.about %}