From cd0c3c66dac147522f8a0da8cb0c8682c8ea400e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20=C2=BBmo=2E=C2=AB=20Sauer?= Date: Mon, 16 Mar 2015 23:09:20 +0100 Subject: [PATCH] Added styles-injection-possibility via front matter new include loop for collections --- _includes/head.html | 4 ++++ _includes/list-collection.html | 20 ++++++++++++++++++++ pages/roadmap.md | 4 +++- 3 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 _includes/list-collection.html diff --git a/_includes/head.html b/_includes/head.html index 739bc20..f5d4198 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -55,4 +55,8 @@ {% if page.noindex == true %}{% endif %} + + {% unless page.style == NULL %} + + {% endunless %} diff --git a/_includes/list-collection.html b/_includes/list-collection.html new file mode 100644 index 0000000..8b26a4a --- /dev/null +++ b/_includes/list-collection.html @@ -0,0 +1,20 @@ +{% comment %} +* +* This include lets you loop through a collection to list +* all entries in that collection. +* +* If you set »published: false« in front matter of a collection page +* the page gots filtered out via unless +* +* Example: {% include list-collection.html collection='wordpress' %} +* +{% endcomment %} + + diff --git a/pages/roadmap.md b/pages/roadmap.md index 2ff6f6d..e4d1ba7 100644 --- a/pages/roadmap.md +++ b/pages/roadmap.md @@ -24,7 +24,9 @@ permalink: "/roadmap/" ## Done -* [Now with optional caption for header] +* Use `style` in front matter to inject css-styles into ` +* Add include to loop through collections +* Now with optional caption for header * [Refined humans.txt](http://humanstxt.org/) * [Produce an introduction video to showcase *Feeling Responsive*](https://www.youtube.com/embed/3b5zCFSmVvU) * [Additional header with text]({{ site.url }}/headers/)