diff --git a/eleventy.config.js b/eleventy.config.js
index 4eaaa0e..f73c405 100644
--- a/eleventy.config.js
+++ b/eleventy.config.js
@@ -80,6 +80,10 @@ module.exports = function(eleventyConfig) {
return (tags || []).filter(tag => ["all", "nav", "post", "posts"].indexOf(tag) === -1);
});
+ eleventyConfig.addFilter("readableAuthors", (authors) => {
+ return authors ? "par " + (authors || []).join(" & ") : "";
+ });
+
// Customize Markdown library and settings:
eleventyConfig.amendLibrary("md", mdLib => {
mdLib.use(markdownItAnchor, {
diff --git a/src/_components/postslist.njk b/src/_components/postslist.njk
index f3c064a..c74fb1a 100644
--- a/src/_components/postslist.njk
+++ b/src/_components/postslist.njk
@@ -5,7 +5,7 @@
{% if post.data.title %}{{ post.data.title }}{% else %}{{ post.url }}
{% endif %}
par le collectif IT's on us
{% set postslist = collections.posts | head(-5) %} {% set postslistCounter = collections.posts | length %} diff --git a/src/assets/css/index.scss b/src/assets/css/index.scss index d0cf81a..26d546d 100644 --- a/src/assets/css/index.scss +++ b/src/assets/css/index.scss @@ -104,6 +104,7 @@ h1 { font-style: normal; font-size: 3rem; font-weight: 700; + margin: 3rem 0 2rem; } h2 { @@ -136,7 +137,11 @@ main { padding: 8rem 1rem 4rem 1rem; } main :first-child { - margin: 0; + margin-top: 0; +} + +.main-title { + margin-bottom: 0; } .sub-title { @@ -229,7 +234,7 @@ figure figcaption { margin-bottom: 5rem; } .postlist-header h2 { - margin-bottom: 0; + margin-bottom: .5rem; } .postlist-link { flex-basis: calc(100% - 1.5rem); @@ -261,14 +266,19 @@ figure figcaption { padding: 0; margin: 0; } -.post-list time, -.post-metadata time { + +h1 + .post-metadata { + margin: 0 0 4rem; +} +.post-list time { margin-right: 1em; font-size: 0.8125rem; /* 13px /16 */ color: var(--text-color-sub); } -.post-metadata li:first-child { +.post-metadata .post-metadata__header { flex-grow: 1; + font-size: 0.8125rem; /* 13px /16 */ + color: var(--text-color-sub); } .post-nav ul { display: flex;