Fixed bug with education being shown both in sidebar and in main-content
This commit is contained in:
parent
a9c67f92bc
commit
412b5e4a0e
@ -1,6 +1,20 @@
|
||||
{% assign education = site.data.data.education %}
|
||||
{% if education %}
|
||||
{% if site.data.sidebar.education %}
|
||||
{% if site.data.data.sidebar.education %}
|
||||
<div class="education-container container-block">
|
||||
|
||||
<h2 class="container-block-title">Education</h2>
|
||||
|
||||
{% for graduation in education %}
|
||||
<div class="item">
|
||||
<h4 class="degree">{{ graduation.degree }}</h4>
|
||||
<h5 class="meta">{{ graduation.university }}</h5>
|
||||
<div class="time">{{ graduation.time }}</div>
|
||||
</div><!--//item-->
|
||||
{% endfor %}
|
||||
|
||||
</div><!--//education-container-->
|
||||
{% else %}
|
||||
<section class="section educations-section">
|
||||
|
||||
<h2 class="section-title">
|
||||
@ -17,7 +31,7 @@
|
||||
<div class="meta">
|
||||
|
||||
<div class="upper-row">
|
||||
<h3 class="degree">{{ graduation.degree }}</h3>
|
||||
<h3 class="degree">{{ graduation.degree }} sdfsdfsdf</h3>
|
||||
<div class="time">{{ graduation.time }}</div>
|
||||
</div><!--//upper-row-->
|
||||
|
||||
@ -33,19 +47,5 @@
|
||||
{% endfor %}
|
||||
|
||||
</section><!--//section-->
|
||||
{% else %}
|
||||
<div class="education-container container-block">
|
||||
|
||||
<h2 class="container-block-title">Education</h2>
|
||||
|
||||
{% for graduation in education %}
|
||||
<div class="item">
|
||||
<h4 class="degree">{{ graduation.degree }}</h4>
|
||||
<h5 class="meta">{{ graduation.university }}</h5>
|
||||
<div class="time">{{ graduation.time }}</div>
|
||||
</div><!--//item-->
|
||||
{% endfor %}
|
||||
|
||||
</div><!--//education-container-->
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
@ -5,7 +5,7 @@ layout: default
|
||||
|
||||
{% include career-profile.html %}
|
||||
|
||||
{% unless sidebar.education %}
|
||||
{% unless site.data.data.sidebar.education %}
|
||||
{% include education.html %}
|
||||
{% endunless %}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user