fixed template bug and data files

many empty div's were generated
This commit is contained in:
Stefan Forstenlechner 2018-01-17 15:15:18 +00:00
parent 1cee9a16d5
commit 2dd2b4eec6
4 changed files with 44 additions and 46 deletions

View File

@ -1,7 +1,6 @@
- intro: intro: "You can list your side projects or open source libraries in this section. Lorem ipsum dolor
description: "You can list your side projects or open source libraries in this section. Lorem ipsum dolor
sit amet, consectetur adipiscing elit. Vestibulum et ligula in nunc bibendum fringilla a eu lectus." sit amet, consectetur adipiscing elit. Vestibulum et ligula in nunc bibendum fringilla a eu lectus."
projects:
- project: - project:
title: Velocity title: Velocity
link: "#hook" link: "#hook"

View File

@ -1,7 +1,6 @@
- intro: intro: "You can list your publications in this section. Lorem ipsum dolor
description: "You can list your publications in this section. Lorem ipsum dolor
sit amet, consectetur adipiscing elit. Vestibulum et ligula in nunc bibendum fringilla a eu lectus." sit amet, consectetur adipiscing elit. Vestibulum et ligula in nunc bibendum fringilla a eu lectus."
publications:
- paper: - paper:
title: The Art of Computer Programming title: The Art of Computer Programming
authors: Donald E. Knuth authors: Donald E. Knuth

View File

@ -3,13 +3,13 @@
<h2 class="section-title"><i class="fa fa-archive"></i>Projects</h2> <h2 class="section-title"><i class="fa fa-archive"></i>Projects</h2>
{% for intro in site.data.projects %} {% if site.data.projects.intro %}
<div class="intro"> <div class="intro">
<p>{{ intro.description }}</p> <p>{{ site.data.projects.intro }}</p>
</div><!--//intro--> </div><!--//intro-->
{% endfor%} {% endif %}
{% for project in site.data.projects %} {% for project in site.data.projects.projects %}
<div class="item"> <div class="item">
<span class="project-title"><a href="{{ project.link }}">{{ project.title }}</a></span> <span class="project-title"><a href="{{ project.link }}">{{ project.title }}</a></span>

View File

@ -3,13 +3,13 @@
<h2 class="section-title"><i class="fa fa-file-text"></i>Publications</h2> <h2 class="section-title"><i class="fa fa-file-text"></i>Publications</h2>
{% for intro in site.data.publications %} {% if site.data.publications.intro %}
<div class="intro"> <div class="intro">
<p>{{ intro.description }}</p> <p>{{ site.data.publications.intro }}</p>
</div><!--//intro--> </div><!--//intro-->
{% endfor%} {% endif %}
{% for publication in site.data.publications %} {% for publication in site.data.publications.publications %}
<div class="item"> <div class="item">
<div class="publication-title">{{ publication.title }}</div> <div class="publication-title">{{ publication.title }}</div>
<div class="publication-authors">{{ publication.authors }}</div> <div class="publication-authors">{{ publication.authors }}</div>