From 25b05c26c71137299bda89eb714672c21364b98f Mon Sep 17 00:00:00 2001 From: Yves Gatesoupe Date: Thu, 16 Jul 2020 19:24:57 +0200 Subject: [PATCH] Minor fixes --- src/404.md | 2 +- src/posts/a-post-with-code-samples.md | 4 --- src/posts/a-post-with-figures-and-video.md | 4 --- src/posts/a-scheduled-post.md | 4 --- src/posts/a-simple-post copy.md | 29 ----------------- src/posts/a-simple-post.md | 23 +++++++++++-- src/posts/a-simpler-post.md | 6 ++++ src/posts/evenement-12-06-20.md | 3 -- src/posts/evenement-24-06-20.md | 1 - src/transforms/parse-transform.js | 38 +++++++++------------- 10 files changed, 44 insertions(+), 70 deletions(-) delete mode 100644 src/posts/a-simple-post copy.md create mode 100644 src/posts/a-simpler-post.md diff --git a/src/404.md b/src/404.md index 1445c96..df54372 100644 --- a/src/404.md +++ b/src/404.md @@ -7,4 +7,4 @@ eleventyExcludeFromCollections: true ![404 not found](/images/404.svg) -Nous sommes désolés, ce contenu n'a pas pu être trouvé. [Retour à l'accueil](/) +Nous sommes désolés, ce contenu n'a pas pu être trouvé. Vous pouvez [revenir à l'accueil](/) diff --git a/src/posts/a-post-with-code-samples.md b/src/posts/a-post-with-code-samples.md index 46ee4bd..cd76f6a 100644 --- a/src/posts/a-post-with-code-samples.md +++ b/src/posts/a-post-with-code-samples.md @@ -2,10 +2,6 @@ title: A post with code samples date: '2019-12-18' type: 'news' -tags: - - demo-content - - code - - blog --- The best way to demo a code post is to display a real life post, so check out this one from [andy-bell.design](https://andy-bell.design/wrote/creating-a-full-bleed-css-utility/) about a full bleed CSS utility. diff --git a/src/posts/a-post-with-figures-and-video.md b/src/posts/a-post-with-figures-and-video.md index 53c5622..f5dcd02 100644 --- a/src/posts/a-post-with-figures-and-video.md +++ b/src/posts/a-post-with-figures-and-video.md @@ -2,10 +2,6 @@ title: A post with figures and video date: '2019-04-18' type: 'news' -tags: - - demo-content - - blog - - media --- A post to demonstrate how a blog post looks on Hylia. Content is all set in the “Body” field as markdown and Eleventy transforms it into a proper HTML post. You can also edit the markdown file directly if you prefer not to use the CMS. diff --git a/src/posts/a-scheduled-post.md b/src/posts/a-scheduled-post.md index 3d971ea..20df0a7 100644 --- a/src/posts/a-scheduled-post.md +++ b/src/posts/a-scheduled-post.md @@ -2,10 +2,6 @@ title: A scheduled post date: '2022-06-18' type: 'news' -tags: - - demo-content - - simple-post - - blog --- This post is scheduled for the future, specifically mid-2022. Hopefully you're still blogging by then too. Once that date ticks by, this post will automatically become published and visible. diff --git a/src/posts/a-simple-post copy.md b/src/posts/a-simple-post copy.md deleted file mode 100644 index bbea1b2..0000000 --- a/src/posts/a-simple-post copy.md +++ /dev/null @@ -1,29 +0,0 @@ ---- -title: A simple post -date: '2019-05-18' -type: 'news' -tags: - - demo-content - - simple-post - - blog ---- -A simple post to demonstrate how a normal blog post looks on Hylia. Content is all set in the “Body” field as markdown and Eleventy transforms it into a proper HTML post. You can also edit the markdown file directly if you prefer not to use the CMS. - -How about a `
`? - -> Maecenas faucibus mollis interdum. Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Aenean lacinia bibendum nulla sed consectetur. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla vitae elit libero, a pharetra augue. - -A list of stuff: - -- Sed posuere consectetur est at lobortis -- Aenean lacinia bibendum nulla sed consectetur -- Sed posuere consectetur est at lobortis - -How about an ordered list of stuff: - -1. Sed posuere consectetur est at lobortis -2. Aenean lacinia bibendum nulla sed consectetur -3. Sed posuere consectetur est at lobortis - - -Hopefully, this has demonstrated how simple it is to make a nice looking blog with Hylia. diff --git a/src/posts/a-simple-post.md b/src/posts/a-simple-post.md index 700dc29..bbea1b2 100644 --- a/src/posts/a-simple-post.md +++ b/src/posts/a-simple-post.md @@ -1,6 +1,6 @@ --- -title: A simpler post -date: '2019-05-19' +title: A simple post +date: '2019-05-18' type: 'news' tags: - demo-content @@ -8,3 +8,22 @@ tags: - blog --- A simple post to demonstrate how a normal blog post looks on Hylia. Content is all set in the “Body” field as markdown and Eleventy transforms it into a proper HTML post. You can also edit the markdown file directly if you prefer not to use the CMS. + +How about a `
`? + +> Maecenas faucibus mollis interdum. Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Aenean lacinia bibendum nulla sed consectetur. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla vitae elit libero, a pharetra augue. + +A list of stuff: + +- Sed posuere consectetur est at lobortis +- Aenean lacinia bibendum nulla sed consectetur +- Sed posuere consectetur est at lobortis + +How about an ordered list of stuff: + +1. Sed posuere consectetur est at lobortis +2. Aenean lacinia bibendum nulla sed consectetur +3. Sed posuere consectetur est at lobortis + + +Hopefully, this has demonstrated how simple it is to make a nice looking blog with Hylia. diff --git a/src/posts/a-simpler-post.md b/src/posts/a-simpler-post.md new file mode 100644 index 0000000..b066122 --- /dev/null +++ b/src/posts/a-simpler-post.md @@ -0,0 +1,6 @@ +--- +title: A simpler post +date: '2019-05-19' +type: 'news' +--- +A simple post to demonstrate how a normal blog post looks on Hylia. Content is all set in the “Body” field as markdown and Eleventy transforms it into a proper HTML post. You can also edit the markdown file directly if you prefer not to use the CMS. diff --git a/src/posts/evenement-12-06-20.md b/src/posts/evenement-12-06-20.md index f66176c..a868559 100644 --- a/src/posts/evenement-12-06-20.md +++ b/src/posts/evenement-12-06-20.md @@ -3,9 +3,6 @@ title: Réunion d'information Astrolabe date: '2020-06-12' time: '19:00' type: 'event' -tags: - - évenement - - réunion --- A simple post to demonstrate how a normal blog post looks on Hylia. Content is all set in the “Body” field as markdown and Eleventy transforms it into a proper HTML post. You can also edit the markdown file directly if you prefer not to use the CMS. diff --git a/src/posts/evenement-24-06-20.md b/src/posts/evenement-24-06-20.md index 2798af4..90a4f71 100644 --- a/src/posts/evenement-24-06-20.md +++ b/src/posts/evenement-24-06-20.md @@ -5,7 +5,6 @@ time: '19:00' author: 'Florent Le Saout' type: 'event' illustration: '/images/reunion-24-06-2020.jpeg' -layout: 'layouts/post.njk' --- Vous vous demandez ce qu'est une #SCOP #CAE ? Le statut d'entrepreneur salarié #CESA est-il fait pour vous ? diff --git a/src/transforms/parse-transform.js b/src/transforms/parse-transform.js index 5757014..befbb08 100644 --- a/src/transforms/parse-transform.js +++ b/src/transforms/parse-transform.js @@ -23,12 +23,6 @@ module.exports = function(value, outputPath) { const file = image.getAttribute('src'); - // if preprod env TODO remove when prod - // if(this.config.pathPrefix.localeCompare('/')) { // pathPrefix is different from '/' - // // if(process.env.ELEVENTY_ENV == "preprod") { // not working - // image.setAttribute('src', this.config.pathPrefix + file); - // } - if (file.indexOf('http') < 0) { const dimensions = getSize('src' + file); @@ -55,24 +49,24 @@ module.exports = function(value, outputPath) { }); } - if (articleHeadings.length) { - // Loop each heading and add a little anchor and an ID to each one - articleHeadings.forEach(heading => { - const headingSlug = slugify(heading.textContent.toLowerCase()); - const anchor = document.createElement('a'); + // if (articleHeadings.length) { + // // Loop each heading and add a little anchor and an ID to each one + // articleHeadings.forEach(heading => { + // const headingSlug = slugify(heading.textContent.toLowerCase()); + // const anchor = document.createElement('a'); - anchor.setAttribute('href', `#heading-${headingSlug}`); - anchor.classList.add('heading-permalink'); - anchor.innerHTML = minify(` - permalink - `); + // anchor.setAttribute('href', `#heading-${headingSlug}`); + // anchor.classList.add('heading-permalink'); + // anchor.innerHTML = minify(` + // permalink + // `); - heading.setAttribute('id', `heading-${headingSlug}`); - heading.appendChild(anchor); - }); - } + // heading.setAttribute('id', `heading-${headingSlug}`); + // heading.appendChild(anchor); + // }); + // } // Look for videos are wrap them in a container element if (articleEmbeds.length) {