Minor fixes

This commit is contained in:
Yves Gatesoupe 2020-07-16 19:24:57 +02:00
parent d20a9e3183
commit 25b05c26c7
10 changed files with 44 additions and 70 deletions

View File

@ -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](/)

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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 `<blockquote>`?
> 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.

View File

@ -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 `<blockquote>`?
> 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.

View File

@ -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.

View File

@ -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.

View File

@ -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 ?

View File

@ -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(`
<span class="visually-hidden"> permalink</span>
<svg fill="currentColor" aria-hidden="true" focusable="false" width="1em" height="1em" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<path d="M9.199 13.599a5.99 5.99 0 0 0 3.949 2.345 5.987 5.987 0 0 0 5.105-1.702l2.995-2.994a5.992 5.992 0 0 0 1.695-4.285 5.976 5.976 0 0 0-1.831-4.211 5.99 5.99 0 0 0-6.431-1.242 6.003 6.003 0 0 0-1.905 1.24l-1.731 1.721a.999.999 0 1 0 1.41 1.418l1.709-1.699a3.985 3.985 0 0 1 2.761-1.123 3.975 3.975 0 0 1 2.799 1.122 3.997 3.997 0 0 1 .111 5.644l-3.005 3.006a3.982 3.982 0 0 1-3.395 1.126 3.987 3.987 0 0 1-2.632-1.563A1 1 0 0 0 9.201 13.6zm5.602-3.198a5.99 5.99 0 0 0-3.949-2.345 5.987 5.987 0 0 0-5.105 1.702l-2.995 2.994a5.992 5.992 0 0 0-1.695 4.285 5.976 5.976 0 0 0 1.831 4.211 5.99 5.99 0 0 0 6.431 1.242 6.003 6.003 0 0 0 1.905-1.24l1.723-1.723a.999.999 0 1 0-1.414-1.414L9.836 19.81a3.985 3.985 0 0 1-2.761 1.123 3.975 3.975 0 0 1-2.799-1.122 3.997 3.997 0 0 1-.111-5.644l3.005-3.006a3.982 3.982 0 0 1 3.395-1.126 3.987 3.987 0 0 1 2.632 1.563 1 1 0 0 0 1.602-1.198z"/>
</svg>`);
// anchor.setAttribute('href', `#heading-${headingSlug}`);
// anchor.classList.add('heading-permalink');
// anchor.innerHTML = minify(`
// <span class="visually-hidden"> permalink</span>
// <svg fill="currentColor" aria-hidden="true" focusable="false" width="1em" height="1em" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
// <path d="M9.199 13.599a5.99 5.99 0 0 0 3.949 2.345 5.987 5.987 0 0 0 5.105-1.702l2.995-2.994a5.992 5.992 0 0 0 1.695-4.285 5.976 5.976 0 0 0-1.831-4.211 5.99 5.99 0 0 0-6.431-1.242 6.003 6.003 0 0 0-1.905 1.24l-1.731 1.721a.999.999 0 1 0 1.41 1.418l1.709-1.699a3.985 3.985 0 0 1 2.761-1.123 3.975 3.975 0 0 1 2.799 1.122 3.997 3.997 0 0 1 .111 5.644l-3.005 3.006a3.982 3.982 0 0 1-3.395 1.126 3.987 3.987 0 0 1-2.632-1.563A1 1 0 0 0 9.201 13.6zm5.602-3.198a5.99 5.99 0 0 0-3.949-2.345 5.987 5.987 0 0 0-5.105 1.702l-2.995 2.994a5.992 5.992 0 0 0-1.695 4.285 5.976 5.976 0 0 0 1.831 4.211 5.99 5.99 0 0 0 6.431 1.242 6.003 6.003 0 0 0 1.905-1.24l1.723-1.723a.999.999 0 1 0-1.414-1.414L9.836 19.81a3.985 3.985 0 0 1-2.761 1.123 3.975 3.975 0 0 1-2.799-1.122 3.997 3.997 0 0 1-.111-5.644l3.005-3.006a3.982 3.982 0 0 1 3.395-1.126 3.987 3.987 0 0 1 2.632 1.563 1 1 0 0 0 1.602-1.198z"/>
// </svg>`);
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) {