From b9af5f811a444913089c5ff68022651d0711f445 Mon Sep 17 00:00:00 2001 From: czmj Date: Sun, 24 Sep 2017 20:20:09 +0100 Subject: [PATCH] Clients page --- _config.yml | 2 ++ src/_clients/a-client.md | 5 +++++ src/_clients/a-n-other.md | 5 +++++ src/_layouts/spotlight.html | 8 +++++++- src/clients.md | 8 ++++---- 5 files changed, 23 insertions(+), 5 deletions(-) create mode 100644 src/_clients/a-client.md create mode 100644 src/_clients/a-n-other.md diff --git a/_config.yml b/_config.yml index 4d4b630..17b2172 100644 --- a/_config.yml +++ b/_config.yml @@ -18,3 +18,5 @@ collections: posts: output: true permalink: /blog/:title/ + clients: + output: false diff --git a/src/_clients/a-client.md b/src/_clients/a-client.md new file mode 100644 index 0000000..e914a77 --- /dev/null +++ b/src/_clients/a-client.md @@ -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 +--- diff --git a/src/_clients/a-n-other.md b/src/_clients/a-n-other.md new file mode 100644 index 0000000..6c85835 --- /dev/null +++ b/src/_clients/a-n-other.md @@ -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 +--- diff --git a/src/_layouts/spotlight.html b/src/_layouts/spotlight.html index 3a77342..0324b6b 100644 --- a/src/_layouts/spotlight.html +++ b/src/_layouts/spotlight.html @@ -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 %}
{% if item.image %}{% endif %}
-

{{ item.title }}

+

+ {% if item.layout %}{% endif %} + {{ item.title }} + {% if item.layout %}{% endif %} +

{{ item.description }}

diff --git a/src/clients.md b/src/clients.md index da37c4a..cd398ed 100644 --- a/src/clients.md +++ b/src/clients.md @@ -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 \ No newline at end of file