From bc7b8f09a4fde96899639ad6878b3878e854dd27 Mon Sep 17 00:00:00 2001 From: czmj Date: Sun, 24 Sep 2017 18:58:01 +0100 Subject: [PATCH] only show values blogs on homepage --- _config.yml | 2 -- src/_includes/section-two.html | 16 ++-------------- src/_posts/2016-09-23-privacy.md | 1 + ...inability.md => 2017-09-21-sustainability.md} | 1 + ...ransparency.md => 2017-09-22-transparency.md} | 1 + 5 files changed, 5 insertions(+), 16 deletions(-) rename src/_posts/{2017-09-23-sustainability.md => 2017-09-21-sustainability.md} (88%) rename src/_posts/{2017-09-23-transparency.md => 2017-09-22-transparency.md} (88%) diff --git a/_config.yml b/_config.yml index 29b345e..4d4b630 100644 --- a/_config.yml +++ b/_config.yml @@ -7,8 +7,6 @@ source: src destination: dist sass: sass_dir: ./assets/styles -tiles-source: posts -tiles-count: 3 featured-image-source: 500px_url: github_url: diff --git a/src/_includes/section-two.html b/src/_includes/section-two.html index d637057..adcdd67 100644 --- a/src/_includes/section-two.html +++ b/src/_includes/section-two.html @@ -1,6 +1,6 @@
- {% for post in site.posts limit:site.tiles-count %}{% if site.tiles-source == 'posts' %} + {% for post in site.categories.values %}
{% if post.image %}{% endif %}
@@ -9,18 +9,6 @@

{{ post.description }}

- - {% endif %}{% endfor %} - {% for page in site.pages limit:site.tiles-count %}{% if site.tiles-source == 'pages' %}{% if page.layout == 'default' %}{% continue %}{% endif %} - -
-
{% if page.image %}{% endif %}
-
-

{{ page.title }}

-

{{ page.description }}

-
-
- - {% endif %}{% endfor %} + {% endfor %}
diff --git a/src/_posts/2016-09-23-privacy.md b/src/_posts/2016-09-23-privacy.md index e464220..d80ba93 100644 --- a/src/_posts/2016-09-23-privacy.md +++ b/src/_posts/2016-09-23-privacy.md @@ -3,6 +3,7 @@ layout: post title: Blog post about privacy description: A post about privacy. image: pic03.jpg +category: values --- Privacy. diff --git a/src/_posts/2017-09-23-sustainability.md b/src/_posts/2017-09-21-sustainability.md similarity index 88% rename from src/_posts/2017-09-23-sustainability.md rename to src/_posts/2017-09-21-sustainability.md index 356b49b..c1a6e95 100644 --- a/src/_posts/2017-09-23-sustainability.md +++ b/src/_posts/2017-09-21-sustainability.md @@ -3,6 +3,7 @@ layout: post title: Blog post about sustainibility description: A post about sustainability. image: pic01.jpg +category: values --- Sustainability. diff --git a/src/_posts/2017-09-23-transparency.md b/src/_posts/2017-09-22-transparency.md similarity index 88% rename from src/_posts/2017-09-23-transparency.md rename to src/_posts/2017-09-22-transparency.md index c08b01f..801020c 100644 --- a/src/_posts/2017-09-23-transparency.md +++ b/src/_posts/2017-09-22-transparency.md @@ -3,6 +3,7 @@ layout: post title: Blog post about transparency description: a post about transparency. image: pic02.jpg +category: values --- Transparency.