Skip to content

Commit

Permalink
Fixed bug with education being shown both in sidebar and in main-content
Browse files Browse the repository at this point in the history
  • Loading branch information
madsbuch authored and nelsonmestevao committed Jul 29, 2018
1 parent a9c67f9 commit 412b5e4
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 42 deletions.
82 changes: 41 additions & 41 deletions _includes/education.html
Original file line number Diff line number Diff line change
@@ -1,51 +1,51 @@
{% assign education = site.data.data.education %}
{% if education %}
{% if site.data.sidebar.education %}
<section class="section educations-section">

<h2 class="section-title">
<span class="fa-stack fa-xs">
<i class="fas fa-circle fa-stack-2x"></i>
<i class="fas fa-graduation-cap fa-stack-1x fa-inverse"></i>
</span>
Education
</h2>

{% for graduation in education %}
<div class="item">

<div class="meta">

<div class="upper-row">
<h3 class="degree">{{ graduation.degree }}</h3>
<div class="time">{{ graduation.time }}</div>
</div><!--//upper-row-->

<div class="university">{{ graduation.university }}</div>
</div><!--//meta-->

{% if graduation.details %}
<div class="details">
{{ graduation.details | markdownify }}
</div><!--//details-->
{% endif %}
</div><!--//item-->
{% endfor %}

</section><!--//section-->
{% 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 %}
<div class="education-container container-block">
<section class="section educations-section">

<h2 class="container-block-title">Education</h2>
<h2 class="section-title">
<span class="fa-stack fa-xs">
<i class="fas fa-circle fa-stack-2x"></i>
<i class="fas fa-graduation-cap fa-stack-1x fa-inverse"></i>
</span>
Education
</h2>

{% for graduation in education %}
{% 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 class="meta">

<div class="upper-row">
<h3 class="degree">{{ graduation.degree }} sdfsdfsdf</h3>
<div class="time">{{ graduation.time }}</div>
</div><!--//upper-row-->

<div class="university">{{ graduation.university }}</div>
</div><!--//meta-->

{% if graduation.details %}
<div class="details">
{{ graduation.details | markdownify }}
</div><!--//details-->
{% endif %}
</div><!--//item-->
{% endfor %}
{% endfor %}

</div><!--//education-container-->
</section><!--//section-->
{% endif %}
{% endif %}
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

{% include career-profile.html %}

{% unless sidebar.education %}
{% unless site.data.data.sidebar.education %}
{% include education.html %}
{% endunless %}

Expand Down

0 comments on commit 412b5e4

Please sign in to comment.