From 2dd2b4eec67ab61eb721e7037c9b15679118b803 Mon Sep 17 00:00:00 2001 From: Stefan Forstenlechner Date: Wed, 17 Jan 2018 15:15:18 +0000 Subject: [PATCH] fixed template bug and data files many empty div's were generated --- _data/projects.yml | 45 ++++++++++++++++++------------------- _data/publications.yml | 29 ++++++++++++------------ _includes/projects.html | 8 +++---- _includes/publications.html | 8 +++---- 4 files changed, 44 insertions(+), 46 deletions(-) diff --git a/_data/projects.yml b/_data/projects.yml index 2974bb1..d9e6c27 100644 --- a/_data/projects.yml +++ b/_data/projects.yml @@ -1,24 +1,23 @@ -- intro: - description: "You can list your side projects or open source libraries in this section. Lorem ipsum dolor +intro: "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." - -- project: - title: Velocity - link: "#hook" - tagline: "A responsive website template designed to help startups promote, market and sell their products." -- project: - title: DevStudio - link: "#" - tagline: "A responsive website template designed to help web developers/designers market their services." -- project: - title: Tempo - link: "#" - tagline: "A responsive website template designed to help startups promote their products or services and to attract users & investors" -- project: - title: Atom - link: "#" - tagline: "A comprehensive website template solution for startups/developers to market their mobile apps." -- project: - title: Delta - link: "#" - tagline: "A responsive Bootstrap one page theme designed to help app developers promote their mobile apps" +projects: + - project: + title: Velocity + link: "#hook" + tagline: "A responsive website template designed to help startups promote, market and sell their products." + - project: + title: DevStudio + link: "#" + tagline: "A responsive website template designed to help web developers/designers market their services." + - project: + title: Tempo + link: "#" + tagline: "A responsive website template designed to help startups promote their products or services and to attract users & investors" + - project: + title: Atom + link: "#" + tagline: "A comprehensive website template solution for startups/developers to market their mobile apps." + - project: + title: Delta + link: "#" + tagline: "A responsive Bootstrap one page theme designed to help app developers promote their mobile apps" diff --git a/_data/publications.yml b/_data/publications.yml index 2c19a57..1e94bfa 100644 --- a/_data/publications.yml +++ b/_data/publications.yml @@ -1,16 +1,15 @@ -- intro: - description: "You can list your publications in this section. Lorem ipsum dolor +intro: "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." - -- paper: - title: The Art of Computer Programming - authors: Donald E. Knuth - conference: Addison-Wesley, 1968 -- paper: - title: "Genetic Programming III: Darwinian Invention & Problem Solving" - authors: Koza, J.R., Andre, D., Bennett, F.H., Keane, M.A. - conference: "Morgan Kaufmann Publishers Inc., San Francisco, CA, USA, 1st edn. (1999)" -- paper: - title: A syntax directed compiler for Algol 60 - authors: Edgar T. Irons - conference: "Comm. ACM 4 (1961), 51–55" +publications: + - paper: + title: The Art of Computer Programming + authors: Donald E. Knuth + conference: Addison-Wesley, 1968 + - paper: + title: "Genetic Programming III: Darwinian Invention & Problem Solving" + authors: Koza, J.R., Andre, D., Bennett, F.H., Keane, M.A. + conference: "Morgan Kaufmann Publishers Inc., San Francisco, CA, USA, 1st edn. (1999)" + - paper: + title: A syntax directed compiler for Algol 60 + authors: Edgar T. Irons + conference: "Comm. ACM 4 (1961), 51–55" diff --git a/_includes/projects.html b/_includes/projects.html index c0812ac..0656720 100644 --- a/_includes/projects.html +++ b/_includes/projects.html @@ -3,13 +3,13 @@

Projects

- {% for intro in site.data.projects %} + {% if site.data.projects.intro %}
-

{{ intro.description }}

+

{{ site.data.projects.intro }}

- {% endfor%} + {% endif %} - {% for project in site.data.projects %} + {% for project in site.data.projects.projects %}
{{ project.title }} diff --git a/_includes/publications.html b/_includes/publications.html index 8a672d8..38a8837 100644 --- a/_includes/publications.html +++ b/_includes/publications.html @@ -3,13 +3,13 @@

Publications

- {% for intro in site.data.publications %} + {% if site.data.publications.intro %}
-

{{ intro.description }}

+

{{ site.data.publications.intro }}

- {% endfor%} + {% endif %} - {% for publication in site.data.publications %} + {% for publication in site.data.publications.publications %}
{{ publication.title }}
{{ publication.authors }}