Skip to content

Commit d2fa36b

Browse files
committed
Update to 11ty 3 + / permalinks + image metadata
1 parent af980bd commit d2fa36b

17 files changed

+26
-25
lines changed

.eleventy.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
1-
const { EleventyRenderPlugin } = require("@11ty/eleventy");
21
const plugin_syntaxhighlight = require('@11ty/eleventy-plugin-syntaxhighlight');
32
const plugin_schema = require("@quasibit/eleventy-plugin-schema");
43

5-
6-
/* Internationalization i18n : Jorge */
7-
const { EleventyI18nPlugin } = require("@11ty/eleventy");
84
const i18n = require('eleventy-plugin-i18n');
95
const translations = require('./src/_data/i18n');
106

@@ -24,7 +20,8 @@ const { namedNode, literal, defaultGraph, quad } = DataFactory;
2420
const store = new N3.Store();
2521
*/
2622

27-
module.exports = function(config) {
23+
module.exports = async function(config) {
24+
const { EleventyRenderPlugin, EleventyI18nPlugin } = await import("@11ty/eleventy");
2825

2926
// plugins
3027
config.addPlugin(plugin_syntaxhighlight);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"start": "ENVIRONMENT=dev eleventy --serve"
88
},
99
"devDependencies": {
10-
"@11ty/eleventy": "^2.0.1",
10+
"@11ty/eleventy": "^3.1.0",
1111
"@11ty/eleventy-fetch": "^4.0.0",
1212
"@11ty/eleventy-plugin-syntaxhighlight": "^3.2.0",
1313
"@quasibit/eleventy-plugin-schema": "^1.11.0",

src/_layouts/post.njk

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,9 @@ bodyClass: single single-post
1313
>
1414

1515

16+
{% set image = page.rawInput | extractFirstImage %}
1617
{% if image %}
17-
<!--
18-
<figure style="text-align:center;">
19-
<img src="{{ image | relative(page) }}" style="width:80%" />
20-
</figure>
21-
-->
18+
<meta itemprop="image" content="{{ metadata.url }}{{ image }}" />
2219
{% endif %}
2320

2421
<div class="post__header">

src/en/posts/20250108-awesome-semantic-shapes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author: Thomas Francart
55
date: 2025-01-08
66
description: A curated Github repository of RDF shape resources
77
tags: SHACL
8-
permalink: en/posts/{{ title | slugify }}
8+
permalink: en/posts/{{ title | slugify }}/
99
linkedin: https://www.linkedin.com/posts/thomasfrancart_github-w3c-cgawesome-semantic-shapes-activity-7282682509249638400-F-6f?utm_source=share&utm_medium=member_desktop
1010
---
1111

src/en/posts/20250125-sparnatural-config-shacl.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author: Thomas Francart
55
date: 2025-01-25
66
description: "3 ways to create SHACL Sparnatural configuration: manual, automated, off-the-shelf."
77
tags: SHACL, Sparnatural
8-
permalink: en/posts/{{ title | slugify }}
8+
permalink: en/posts/{{ title | slugify }}/
99
linkedin: https://www.linkedin.com/posts/thomasfrancart_this-week-i-wrote-a-blog-post-on-the-different-activity-7288577214009204737-Huus
1010
---
1111

src/en/posts/20250130-are-your-data-shapes-in-good-shape.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author: Thomas Francart
55
date: 2025-01-30
66
description: Now you can see it with the latest version of SHACL Play
77
tags: SHACL Play, SHACL
8-
permalink: en/posts/{{ title | slugify }}
8+
permalink: en/posts/{{ title | slugify }}/
99
linkedin: https://www.linkedin.com/posts/thomasfrancart_ontologists-knowledge-engineers-are-your-activity-7290353057651961859-pFd-?utm_source=share&utm_medium=member_desktop
1010
---
1111

src/en/posts/20250206-nakala-shacl-automated-sparnatural.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author: Marie Muller
55
date: 2025-02-06
66
description: A usecase of an automated version of Sparnatural submitted as an example for Veronika Heimsbakk’s "SHACL for the Practitioner" upcoming book
77
tags: Sparnatural, SHACL
8-
permalink: en/posts/{{ title | slugify }}
8+
permalink: en/posts/{{ title | slugify }}/
99
linkedin: https://www.linkedin.com/posts/thomasfrancart_nakala-from-an-rdf-dataset-to-a-query-ui-activity-7293376368736698370-44Ns
1010
bluesky: https://bsky.app/profile/chutjeveille.bsky.social/post/3lhj5sy4ojc2k
1111
mastodon: https://mastodon.social/@MarieMuller/113957039282718478

src/en/posts/20250214-rdf2gephi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author: Thomas Francart
55
date: 2025-02-13
66
description: Gephi is an open-source graph visualization and manipulation software. Use it to render your RDF knowledge graphs by converting them in the appropriate format.
77
tags: RDF, Gephi
8-
permalink: en/posts/{{ title | slugify }}
8+
permalink: en/posts/{{ title | slugify }}/
99
linkedin: https://www.linkedin.com/posts/thomasfrancart_github-sparna-gitrdf2gephi-a-converter-activity-7295837773482131456-wZH0
1010
bluesky:
1111
mastodon:

src/en/posts/20250226-rico-converter-3.0.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author: Thomas Francart
55
date: 2025-02-26
66
description: A new version of the RiC-O converter tool has been released (v3.0). This tool enables archival institutions to transition from XML-oriented archival descriptions to graph-based descriptions based on the new archival conceptual model Records-in-Contexts.
77
tags: RiC-O
8-
permalink: en/posts/{{ title | slugify }}
8+
permalink: en/posts/{{ title | slugify }}/
99
linkedin: https://www.linkedin.com/posts/thomasfrancart_the-ric-o-converter-tool-has-been-released-activity-7300474920117956608-KL7L?utm_source=share&utm_medium=member_desktop&rcm=ACoAAAiD3YwBJvGpu4Ak2jXNNvmSX7ws2MZ_uLE
1010
bluesky:
1111
mastodon:

src/en/posts/20250305-widgets-wednesday.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author: Marie Muller
55
date: 2025-03-05
66
description: All the possible ways to select a criteria value in Sparnatural !
77
tags: Sparnatural, SPARQL, RDF
8-
permalink: en/posts/{{ title | slugify }}
8+
permalink: en/posts/{{ title | slugify }}/
99
bluesky: https://bsky.app/profile/chutjeveille.bsky.social/post/3lfs6zh7ub22k
1010
mastodon: https://mastodon.social/@MarieMuller/113833367867395813
1111
---

0 commit comments

Comments
 (0)