Clients page

This commit is contained in:
czmj 2017-09-24 20:20:09 +01:00
parent dba6bccf3c
commit b9af5f811a
5 changed files with 23 additions and 5 deletions

View File

@ -18,3 +18,5 @@ collections:
posts:
output: true
permalink: /blog/:title/
clients:
output: false

5
src/_clients/a-client.md Normal file
View File

@ -0,0 +1,5 @@
---
title: A. Client
description: Someone we have done some work for. How did it help them? What did we achieve?
image: pic03.jpg
---

View File

@ -0,0 +1,5 @@
---
title: A. N. Other
description: Another client with another few sentences of text. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor.
image: pic01.jpg
---

View File

@ -17,13 +17,19 @@
{% assign items = site.posts %}
{% elsif page.tiles-source == 'pages' %}
{% assign items = site.pages %}
{% elsif page.tiles-source == 'clients' %}
{% assign items = site.clients %}
{% endif %}
{% for item in items limit:page.tiles-count %}
<section class="spotlight">
<div class="image">{% if item.image %}<img src="{% if site.featured-image-source %}{{ item.image | prepend: site.featured-image-source | absolute_url }}{% else %}{{ "" | absolute_url }}/assets/images/{{ item.image }}{% endif %}" alt="" />{% endif %}</div>
<div class="content">
<h2><a href="{{ item.url | relative_url }}" class="link">{{ item.title }}</a></h2>
<h2>
{% if item.layout %}<a href="{{ item.url | relative_url }}" class="link">{% endif %}
{{ item.title }}
{% if item.layout %}</a>{% endif %}
</h2>
<p>{{ item.description }}</p>
</div>
</section>

View File

@ -1,9 +1,9 @@
---
layout: page
layout: spotlight
tiles-source: clients
tiles-limit: 50
title: Clients
description: Clients of Autonomic
---
### Clients
Insert fancy list of clients
### Clients