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,24 +1,23 @@
- 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"
tagline: "A responsive website template designed to help startups promote, market and sell their products." tagline: "A responsive website template designed to help startups promote, market and sell their products."
- project: - project:
title: DevStudio title: DevStudio
link: "#" link: "#"
tagline: "A responsive website template designed to help web developers/designers market their services." tagline: "A responsive website template designed to help web developers/designers market their services."
- project: - project:
title: Tempo title: Tempo
link: "#" link: "#"
tagline: "A responsive website template designed to help startups promote their products or services and to attract users & investors" tagline: "A responsive website template designed to help startups promote their products or services and to attract users & investors"
- project: - project:
title: Atom title: Atom
link: "#" link: "#"
tagline: "A comprehensive website template solution for startups/developers to market their mobile apps." tagline: "A comprehensive website template solution for startups/developers to market their mobile apps."
- project: - project:
title: Delta title: Delta
link: "#" link: "#"
tagline: "A responsive Bootstrap one page theme designed to help app developers promote their mobile apps" tagline: "A responsive Bootstrap one page theme designed to help app developers promote their mobile apps"

View File

@ -1,16 +1,15 @@
- 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
conference: Addison-Wesley, 1968 conference: Addison-Wesley, 1968
- paper: - paper:
title: "Genetic Programming III: Darwinian Invention & Problem Solving" title: "Genetic Programming III: Darwinian Invention & Problem Solving"
authors: Koza, J.R., Andre, D., Bennett, F.H., Keane, M.A. authors: Koza, J.R., Andre, D., Bennett, F.H., Keane, M.A.
conference: "Morgan Kaufmann Publishers Inc., San Francisco, CA, USA, 1st edn. (1999)" conference: "Morgan Kaufmann Publishers Inc., San Francisco, CA, USA, 1st edn. (1999)"
- paper: - paper:
title: A syntax directed compiler for Algol 60 title: A syntax directed compiler for Algol 60
authors: Edgar T. Irons authors: Edgar T. Irons
conference: "Comm. ACM 4 (1961), 5155" conference: "Comm. ACM 4 (1961), 5155"

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>