only show values blogs on homepage

This commit is contained in:
czmj 2017-09-24 18:58:01 +01:00
parent 4c9c3c088a
commit bc7b8f09a4
5 changed files with 5 additions and 16 deletions

View File

@ -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:

View File

@ -1,6 +1,6 @@
<section id="two" class="wrapper alt style2">
{% for post in site.posts limit:site.tiles-count %}{% if site.tiles-source == 'posts' %}
{% for post in site.categories.values %}
<section class="spotlight">
<div class="image">{% if post.image %}<img src="{% if site.featured-image-source %}{{ post.image | prepend: site.featured-image-source | absolute_url }}{% else %}{{ "" | absolute_url }}/assets/images/{{ post.image }}{% endif %}" alt="" />{% endif %}</div>
@ -9,18 +9,6 @@
<p>{{ post.description }}</p>
</div>
</section>
{% endif %}{% endfor %}
{% for page in site.pages limit:site.tiles-count %}{% if site.tiles-source == 'pages' %}{% if page.layout == 'default' %}{% continue %}{% endif %}
<section class="spotlight">
<div class="image">{% if page.image %}<img src="{% if site.featured-image-source %}{{ page.image | prepend: site.featured-image-source | absolute_url }}{% else %}{{ "" | absolute_url }}/assets/images/{{ page.image }}{% endif %}" alt="" />{% endif %}</div>
<div class="content">
<h2><a href="{{ page.url | relative_url }}" class="link">{{ page.title }}</a></h2>
<p>{{ page.description }}</p>
</div>
</section>
{% endif %}{% endfor %}
{% endfor %}
</section>

View File

@ -3,6 +3,7 @@ layout: post
title: Blog post about privacy
description: A post about privacy.
image: pic03.jpg
category: values
---
Privacy.

View File

@ -3,6 +3,7 @@ layout: post
title: Blog post about sustainibility
description: A post about sustainability.
image: pic01.jpg
category: values
---
Sustainability.

View File

@ -3,6 +3,7 @@ layout: post
title: Blog post about transparency
description: a post about transparency.
image: pic02.jpg
category: values
---
Transparency.