From 8f12dc4368bf5b2178dbc16ad213879c70161642 Mon Sep 17 00:00:00 2001 From: mose Date: Thu, 31 Aug 2017 08:36:44 +0800 Subject: [PATCH] add list of posts on crapauds pages --- _includes/crapaud_posts.html | 35 +++++++++++++++++++ _includes/crapauds.html | 5 ++- _layouts/crapaud.html | 5 +++ _posts/2017-09-12-hypergender.md | 2 +- .../2017-09-12-intelligence_collaborative.md | 2 +- public/css/addon.css | 8 +++++ 6 files changed, 54 insertions(+), 3 deletions(-) create mode 100644 _includes/crapaud_posts.html diff --git a/_includes/crapaud_posts.html b/_includes/crapaud_posts.html new file mode 100644 index 0000000..69813b9 --- /dev/null +++ b/_includes/crapaud_posts.html @@ -0,0 +1,35 @@ +
+ {% for post in site.posts %} + {% if post.authors contains page.title %} +
+

+ + {{ post.title }} + +

+ {{ post.description | markdownify | remove: '

' | remove: '

' }} + lire la suite
+ + {% if post.modified.size > 2 %} + + {% else %} + + {% endif %} + + + +
+ {% unless forloop.last %}
{% endunless %} + + {% endif %} + {% endfor %} +
+ + diff --git a/_includes/crapauds.html b/_includes/crapauds.html index 9d7f9bb..587e8ab 100644 --- a/_includes/crapauds.html +++ b/_includes/crapauds.html @@ -1,7 +1,10 @@ {% for page in site.pages %} {% if page.categories contains "crapaud" %} -
{{ page.title }}
+
+ +
{{ page.description }}
+
{% endif %} {% endfor %} diff --git a/_layouts/crapaud.html b/_layouts/crapaud.html index 548f573..da5404e 100644 --- a/_layouts/crapaud.html +++ b/_layouts/crapaud.html @@ -15,8 +15,13 @@ layout: default {% endif %} {{ content }} + +
+ {% include crapaud_posts.html %} + + {% unless page.hide_printmsg == true %} {% include printmsgpages.html %} {% endunless %} diff --git a/_posts/2017-09-12-hypergender.md b/_posts/2017-09-12-hypergender.md index 104305e..97268da 100644 --- a/_posts/2017-09-12-hypergender.md +++ b/_posts/2017-09-12-hypergender.md @@ -2,7 +2,7 @@ layout: post title: Hypergender authors: - - Asmaa Guedira + - Asmaa Guédira date: "2017-09-12" slug: "hypergender" description: "Hyper-Gender est un mouvement qui explore le changement de paradigme en cours dans nos sociétés autour du genre, de l’identité, et des interactions sociales au 21ème siècle." diff --git a/_posts/2017-09-12-intelligence_collaborative.md b/_posts/2017-09-12-intelligence_collaborative.md index 5597de4..9a8040b 100644 --- a/_posts/2017-09-12-intelligence_collaborative.md +++ b/_posts/2017-09-12-intelligence_collaborative.md @@ -2,7 +2,7 @@ layout: post title: Intelligence collaborative en action authors: - - Asmaa Guedira + - Asmaa Guédira - Laura-Jane Gautier - Francesca Pick date: "2017-09-12" diff --git a/public/css/addon.css b/public/css/addon.css index a91af66..8bc1172 100644 --- a/public/css/addon.css +++ b/public/css/addon.css @@ -81,6 +81,14 @@ right: 0; display: none; } + +.crapaud { + margin-top: .8em; +} +.crapaud .description { + font-size: .9em; + line-height: 1em; +} @media (min-width: 56em) { .sidebar { visibility: visible;