From a9c67f92bcdee543fffe638c350401a1b67c65d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nelson=20Estev=C3=A3o?= Date: Wed, 25 Jul 2018 23:09:17 +0100 Subject: [PATCH] Fix logic in includes --- _data/data.yml | 4 ++-- _includes/sidebar.html | 6 +++--- index.html | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/_data/data.yml b/_data/data.yml index 5a9174d..22eaa98 100644 --- a/_data/data.yml +++ b/_data/data.yml @@ -3,8 +3,8 @@ # sidebar: - about: True # set to false or comment line if you want to remove the "how to use?" in the sidebar - education: False # set to True if you want to remove education in main section instead of in sidebar + about: True # set to False or comment line if you want to remove the "how to use?" in the sidebar + education: True # set to False if you want education in main section instead of in sidebar # Profile information name: Alan Doe diff --git a/_includes/sidebar.html b/_includes/sidebar.html index c91d762..c0e3aed 100644 --- a/_includes/sidebar.html +++ b/_includes/sidebar.html @@ -19,9 +19,9 @@ {% include contact.html %} - {% unless sidebar.education %} - {% include education.html %} - {% endunless %} + {% if sidebar.education %} + {% include education.html %} + {% endif %} {% include language.html %} {% include interests.html %} diff --git a/index.html b/index.html index 18cb460..97f526b 100644 --- a/index.html +++ b/index.html @@ -5,9 +5,9 @@ layout: default {% include career-profile.html %} -{% if site.education_in_main %} +{% unless sidebar.education %} {% include education.html %} -{% endif %} +{% endunless %} {% include experiences.html %}