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 destination: dist
sass: sass:
sass_dir: ./assets/styles sass_dir: ./assets/styles
tiles-source: posts
tiles-count: 3
featured-image-source: featured-image-source:
500px_url: 500px_url:
github_url: github_url:

View File

@ -1,6 +1,6 @@
<section id="two" class="wrapper alt style2"> <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"> <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> <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> <p>{{ post.description }}</p>
</div> </div>
</section> </section>
{% endfor %}
{% 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 %}
</section> </section>

View File

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

View File

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

View File

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