Skip to content

Commit

Permalink
11ty test site
Browse files Browse the repository at this point in the history
  • Loading branch information
lexoyo committed Dec 27, 2023
1 parent 57ab805 commit 814a589
Show file tree
Hide file tree
Showing 42 changed files with 9,290 additions and 1 deletion.
34 changes: 34 additions & 0 deletions 11ty-test/.eleventy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
// .eleventy.js
const { EleventyI18nPlugin } = require("@11ty/eleventy");
const Image = require("@11ty/eleventy-img");

module.exports = function(eleventyConfig) {
// Serve CSS along with the site
eleventyConfig.addPassthroughCopy({"hosting/css/*.css": "css"});

// For the fetch plugin
eleventyConfig.watchIgnores.add('**/.cache/**')

// i18n plugin
eleventyConfig.addPlugin(EleventyI18nPlugin, {
// any valid BCP 47-compatible language tag is supported
defaultLanguage: "en",
});

// Image plugin
eleventyConfig.addShortcode("image", async function(src, alt, sizes) {
let metadata = await Image(src, {
widths: [300, 600],
formats: ["avif", "jpeg"]
});
let imageAttributes = {
alt,
sizes,
loading: "lazy",
decoding: "async",
};

// You bet we throw an error on a missing alt (alt="" works okay)
return Image.generateHTML(metadata, imageAttributes);
});
};
Binary file added 11ty-test/.eleventy.js.swp
Binary file not shown.
2 changes: 2 additions & 0 deletions 11ty-test/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.cache

1 change: 1 addition & 0 deletions 11ty-test/_site/css/index.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions 11ty-test/_site/css/post.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions 11ty-test/_site/css/posts.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions 11ty-test/_site/en/fifth/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@


<!DOCTYPE html>
<html lang="">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="/css/post.css" />


<title></title>
<link rel="icon" href="" />
<meta name="description" property="description" content=""/>
<meta name="og:title" property="og:title" content=""/>
<meta name="og:description" property="og:description" content=""/>
<meta name="og:image" property="og:image" content=""/>
</head>
<body id="ibwah"><H1 id="icdeg">This blog post:<br/></H1><div id="ip5g6"><div id="ilfgj" class="field">Label: <span id="iqcyh">fifth</span><br/></div><div id="ipk7y" class="field">Title: <span id="ixqad"></span><br/></div><div id="iwbpj" class="field">Text: <span id="iogpq"><p>fifth</p></span><br/></div></div></body>
</html>
18 changes: 18 additions & 0 deletions 11ty-test/_site/en/first/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@


<!DOCTYPE html>
<html lang="">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="/css/post.css" />


<title></title>
<link rel="icon" href="" />
<meta name="description" property="description" content=""/>
<meta name="og:title" property="og:title" content=""/>
<meta name="og:description" property="og:description" content=""/>
<meta name="og:image" property="og:image" content=""/>
</head>
<body id="ibwah"><H1 id="icdeg">This blog post:<br/></H1><div id="ip5g6"><div id="ilfgj" class="field">Label: <span id="iqcyh">first</span><br/></div><div id="ipk7y" class="field">Title: <span id="ixqad"></span><br/></div><div id="iwbpj" class="field">Text: <span id="iogpq"><p>first</p></span><br/></div></div></body>
</html>
18 changes: 18 additions & 0 deletions 11ty-test/_site/en/fourth/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@


<!DOCTYPE html>
<html lang="">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="/css/post.css" />


<title></title>
<link rel="icon" href="" />
<meta name="description" property="description" content=""/>
<meta name="og:title" property="og:title" content=""/>
<meta name="og:description" property="og:description" content=""/>
<meta name="og:image" property="og:image" content=""/>
</head>
<body id="ibwah"><H1 id="icdeg">This blog post:<br/></H1><div id="ip5g6"><div id="ilfgj" class="field">Label: <span id="iqcyh">fourth</span><br/></div><div id="ipk7y" class="field">Title: <span id="ixqad"></span><br/></div><div id="iwbpj" class="field">Text: <span id="iogpq"><p>fourth</p></span><br/></div></div></body>
</html>
18 changes: 18 additions & 0 deletions 11ty-test/_site/en/second/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@


<!DOCTYPE html>
<html lang="">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="/css/post.css" />


<title></title>
<link rel="icon" href="" />
<meta name="description" property="description" content=""/>
<meta name="og:title" property="og:title" content=""/>
<meta name="og:description" property="og:description" content=""/>
<meta name="og:image" property="og:image" content=""/>
</head>
<body id="ibwah"><H1 id="icdeg">This blog post:<br/></H1><div id="ip5g6"><div id="ilfgj" class="field">Label: <span id="iqcyh">second</span><br/></div><div id="ipk7y" class="field">Title: <span id="ixqad"></span><br/></div><div id="iwbpj" class="field">Text: <span id="iogpq"><p>second</p></span><br/></div></div></body>
</html>
19 changes: 19 additions & 0 deletions 11ty-test/_site/en/test/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@


<!DOCTYPE html>
<html lang="">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="/css/post.css" />


<title></title>
<link rel="icon" href="" />
<meta name="description" property="description" content=""/>
<meta name="og:title" property="og:title" content=""/>
<meta name="og:description" property="og:description" content=""/>
<meta name="og:image" property="og:image" content=""/>
</head>
<body id="ibwah"><H1 id="icdeg">This blog post:<br/></H1><div id="ip5g6"><div id="ilfgj" class="field">Label: <span id="iqcyh">test</span><br/></div><div id="ipk7y" class="field">Title: <span id="ixqad">blog1en</span><br/></div><div id="iwbpj" class="field">Text: <span id="iogpq"><h4 class="p1">Les plages sont beaucoup moins nettoy&eacute;es</h4>
<p class="p1">En effet, les municipalit&eacute;s laissent les plages se reposer durant la basse saison (le nettoyage des plages peut appauvrir la biodiversit&eacute; mais aussi acc&eacute;l&eacute;rer l'&eacute;rosion). Pour autant les d&eacute;chets, eux, sont toujours pr&eacute;sents !</p></span><br/></div></div></body>
</html>
18 changes: 18 additions & 0 deletions 11ty-test/_site/en/third/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@


<!DOCTYPE html>
<html lang="">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="/css/post.css" />


<title></title>
<link rel="icon" href="" />
<meta name="description" property="description" content=""/>
<meta name="og:title" property="og:title" content=""/>
<meta name="og:description" property="og:description" content=""/>
<meta name="og:image" property="og:image" content=""/>
</head>
<body id="ibwah"><H1 id="icdeg">This blog post:<br/></H1><div id="ip5g6"><div id="ilfgj" class="field">Label: <span id="iqcyh">third</span><br/></div><div id="ipk7y" class="field">Title: <span id="ixqad"></span><br/></div><div id="iwbpj" class="field">Text: <span id="iogpq"><p>third</p></span><br/></div></div></body>
</html>
18 changes: 18 additions & 0 deletions 11ty-test/_site/fr/fifth/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@


<!DOCTYPE html>
<html lang="">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="/css/post.css" />


<title></title>
<link rel="icon" href="" />
<meta name="description" property="description" content=""/>
<meta name="og:title" property="og:title" content=""/>
<meta name="og:description" property="og:description" content=""/>
<meta name="og:image" property="og:image" content=""/>
</head>
<body id="ibwah"><H1 id="icdeg">This blog post:<br/></H1><div id="ip5g6"><div id="ilfgj" class="field">Label: <span id="iqcyh">fifth</span><br/></div><div id="ipk7y" class="field">Title: <span id="ixqad"></span><br/></div><div id="iwbpj" class="field">Text: <span id="iogpq"><p>fifth</p></span><br/></div></div></body>
</html>
18 changes: 18 additions & 0 deletions 11ty-test/_site/fr/first/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@


<!DOCTYPE html>
<html lang="">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="/css/post.css" />


<title></title>
<link rel="icon" href="" />
<meta name="description" property="description" content=""/>
<meta name="og:title" property="og:title" content=""/>
<meta name="og:description" property="og:description" content=""/>
<meta name="og:image" property="og:image" content=""/>
</head>
<body id="ibwah"><H1 id="icdeg">This blog post:<br/></H1><div id="ip5g6"><div id="ilfgj" class="field">Label: <span id="iqcyh">first</span><br/></div><div id="ipk7y" class="field">Title: <span id="ixqad"></span><br/></div><div id="iwbpj" class="field">Text: <span id="iogpq"><p>first</p></span><br/></div></div></body>
</html>
18 changes: 18 additions & 0 deletions 11ty-test/_site/fr/fourth/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@


<!DOCTYPE html>
<html lang="">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="/css/post.css" />


<title></title>
<link rel="icon" href="" />
<meta name="description" property="description" content=""/>
<meta name="og:title" property="og:title" content=""/>
<meta name="og:description" property="og:description" content=""/>
<meta name="og:image" property="og:image" content=""/>
</head>
<body id="ibwah"><H1 id="icdeg">This blog post:<br/></H1><div id="ip5g6"><div id="ilfgj" class="field">Label: <span id="iqcyh">fourth</span><br/></div><div id="ipk7y" class="field">Title: <span id="ixqad"></span><br/></div><div id="iwbpj" class="field">Text: <span id="iogpq"><p>fourth</p></span><br/></div></div></body>
</html>
18 changes: 18 additions & 0 deletions 11ty-test/_site/fr/second/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@


<!DOCTYPE html>
<html lang="">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="/css/post.css" />


<title></title>
<link rel="icon" href="" />
<meta name="description" property="description" content=""/>
<meta name="og:title" property="og:title" content=""/>
<meta name="og:description" property="og:description" content=""/>
<meta name="og:image" property="og:image" content=""/>
</head>
<body id="ibwah"><H1 id="icdeg">This blog post:<br/></H1><div id="ip5g6"><div id="ilfgj" class="field">Label: <span id="iqcyh">second</span><br/></div><div id="ipk7y" class="field">Title: <span id="ixqad"></span><br/></div><div id="iwbpj" class="field">Text: <span id="iogpq"><p>second</p></span><br/></div></div></body>
</html>
19 changes: 19 additions & 0 deletions 11ty-test/_site/fr/test/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@


<!DOCTYPE html>
<html lang="">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="/css/post.css" />


<title></title>
<link rel="icon" href="" />
<meta name="description" property="description" content=""/>
<meta name="og:title" property="og:title" content=""/>
<meta name="og:description" property="og:description" content=""/>
<meta name="og:image" property="og:image" content=""/>
</head>
<body id="ibwah"><H1 id="icdeg">This blog post:<br/></H1><div id="ip5g6"><div id="ilfgj" class="field">Label: <span id="iqcyh">test</span><br/></div><div id="ipk7y" class="field">Title: <span id="ixqad">blog1fr1</span><br/></div><div id="iwbpj" class="field">Text: <span id="iogpq"><h4 class="p1">Les plages sont beaucoup moins nettoy&eacute;es</h4>
<p class="p1">En effet, les municipalit&eacute;s laissent les plages se reposer durant la basse saison (le nettoyage des plages peut appauvrir la biodiversit&eacute; mais aussi acc&eacute;l&eacute;rer l'&eacute;rosion). Pour autant les d&eacute;chets, eux, sont toujours pr&eacute;sents !</p></span><br/></div></div></body>
</html>
18 changes: 18 additions & 0 deletions 11ty-test/_site/fr/third/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@


<!DOCTYPE html>
<html lang="">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="/css/post.css" />


<title></title>
<link rel="icon" href="" />
<meta name="description" property="description" content=""/>
<meta name="og:title" property="og:title" content=""/>
<meta name="og:description" property="og:description" content=""/>
<meta name="og:image" property="og:image" content=""/>
</head>
<body id="ibwah"><H1 id="icdeg">This blog post:<br/></H1><div id="ip5g6"><div id="ilfgj" class="field">Label: <span id="iqcyh">third</span><br/></div><div id="ipk7y" class="field">Title: <span id="ixqad"></span><br/></div><div id="iwbpj" class="field">Text: <span id="iogpq"><p>third</p></span><br/></div></div></body>
</html>
22 changes: 22 additions & 0 deletions 11ty-test/_site/hosting/posts-en/1/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@


<!DOCTYPE html>
<html lang="">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="/css/posts.css" />


<title></title>
<link rel="icon" href="" />
<meta name="description" property="description" content=""/>
<meta name="og:title" property="og:title" content=""/>
<meta name="og:description" property="og:description" content=""/>
<meta name="og:image" property="og:image" content=""/>
</head>
<body id="iossg"><H1 id="iqeos">Paginated blog posts:<br/></H1>

<div id="iat7h" style="min-height: 100px;"><div id="iqif7" class="field">Label: <span id="ithxw">third</span><br/></div><div id="i22mm" class="field">Title: <span id="i3yrx"></span><br/></div><div id="iqoyh" class="field">Text: <span id="idam9"><p>third</p></span><br/></div></div>
<div id="iat7h" style="min-height: 100px;"><div id="iqif7" class="field">Label: <span id="ithxw">fourth</span><br/></div><div id="i22mm" class="field">Title: <span id="i3yrx"></span><br/></div><div id="iqoyh" class="field">Text: <span id="idam9"><p>fourth</p></span><br/></div></div>
<div id="iat7h" style="min-height: 100px;"><div id="iqif7" class="field">Label: <span id="ithxw">fifth</span><br/></div><div id="i22mm" class="field">Title: <span id="i3yrx"></span><br/></div><div id="iqoyh" class="field">Text: <span id="idam9"><p>fifth</p></span><br/></div></div><div id="i06yk"><div id="i7v3g"><A id="iv80l" href="">Next</A> (<span id="imf3q">2</span><span id="iaemo"> /</span><span id="iuexr">2</span>)<br/></div></div></body>
</html>
23 changes: 23 additions & 0 deletions 11ty-test/_site/hosting/posts-en/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@


<!DOCTYPE html>
<html lang="">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="/css/posts.css" />


<title></title>
<link rel="icon" href="" />
<meta name="description" property="description" content=""/>
<meta name="og:title" property="og:title" content=""/>
<meta name="og:description" property="og:description" content=""/>
<meta name="og:image" property="og:image" content=""/>
</head>
<body id="iossg"><H1 id="iqeos">Paginated blog posts:<br/></H1>

<div id="iat7h" style="min-height: 100px;"><div id="iqif7" class="field">Label: <span id="ithxw">test</span><br/></div><div id="i22mm" class="field">Title: <span id="i3yrx">blog1en</span><br/></div><div id="iqoyh" class="field">Text: <span id="idam9"><h4 class="p1">Les plages sont beaucoup moins nettoy&eacute;es</h4>
<p class="p1">En effet, les municipalit&eacute;s laissent les plages se reposer durant la basse saison (le nettoyage des plages peut appauvrir la biodiversit&eacute; mais aussi acc&eacute;l&eacute;rer l'&eacute;rosion). Pour autant les d&eacute;chets, eux, sont toujours pr&eacute;sents !</p></span><br/></div></div>
<div id="iat7h" style="min-height: 100px;"><div id="iqif7" class="field">Label: <span id="ithxw">first</span><br/></div><div id="i22mm" class="field">Title: <span id="i3yrx"></span><br/></div><div id="iqoyh" class="field">Text: <span id="idam9"><p>first</p></span><br/></div></div>
<div id="iat7h" style="min-height: 100px;"><div id="iqif7" class="field">Label: <span id="ithxw">second</span><br/></div><div id="i22mm" class="field">Title: <span id="i3yrx"></span><br/></div><div id="iqoyh" class="field">Text: <span id="idam9"><p>second</p></span><br/></div></div><div id="i06yk"><div id="i7v3g"><A id="iv80l" href="/hosting/posts-en/1/">Next</A> (<span id="imf3q">1</span><span id="iaemo"> /</span><span id="iuexr">2</span>)<br/></div></div></body>
</html>
22 changes: 22 additions & 0 deletions 11ty-test/_site/hosting/posts-fr/1/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@


<!DOCTYPE html>
<html lang="">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="/css/posts.css" />


<title></title>
<link rel="icon" href="" />
<meta name="description" property="description" content=""/>
<meta name="og:title" property="og:title" content=""/>
<meta name="og:description" property="og:description" content=""/>
<meta name="og:image" property="og:image" content=""/>
</head>
<body id="iossg"><H1 id="iqeos">Paginated blog posts:<br/></H1>

<div id="iat7h" style="min-height: 100px;"><div id="iqif7" class="field">Label: <span id="ithxw">third</span><br/></div><div id="i22mm" class="field">Title: <span id="i3yrx"></span><br/></div><div id="iqoyh" class="field">Text: <span id="idam9"><p>third</p></span><br/></div></div>
<div id="iat7h" style="min-height: 100px;"><div id="iqif7" class="field">Label: <span id="ithxw">fourth</span><br/></div><div id="i22mm" class="field">Title: <span id="i3yrx"></span><br/></div><div id="iqoyh" class="field">Text: <span id="idam9"><p>fourth</p></span><br/></div></div>
<div id="iat7h" style="min-height: 100px;"><div id="iqif7" class="field">Label: <span id="ithxw">fifth</span><br/></div><div id="i22mm" class="field">Title: <span id="i3yrx"></span><br/></div><div id="iqoyh" class="field">Text: <span id="idam9"><p>fifth</p></span><br/></div></div><div id="i06yk"><div id="i7v3g"><A id="iv80l" href="">Next</A> (<span id="imf3q">2</span><span id="iaemo"> /</span><span id="iuexr">2</span>)<br/></div></div></body>
</html>
23 changes: 23 additions & 0 deletions 11ty-test/_site/hosting/posts-fr/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@


<!DOCTYPE html>
<html lang="">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="/css/posts.css" />


<title></title>
<link rel="icon" href="" />
<meta name="description" property="description" content=""/>
<meta name="og:title" property="og:title" content=""/>
<meta name="og:description" property="og:description" content=""/>
<meta name="og:image" property="og:image" content=""/>
</head>
<body id="iossg"><H1 id="iqeos">Paginated blog posts:<br/></H1>

<div id="iat7h" style="min-height: 100px;"><div id="iqif7" class="field">Label: <span id="ithxw">test</span><br/></div><div id="i22mm" class="field">Title: <span id="i3yrx">blog1en</span><br/></div><div id="iqoyh" class="field">Text: <span id="idam9"><h4 class="p1">Les plages sont beaucoup moins nettoy&eacute;es</h4>
<p class="p1">En effet, les municipalit&eacute;s laissent les plages se reposer durant la basse saison (le nettoyage des plages peut appauvrir la biodiversit&eacute; mais aussi acc&eacute;l&eacute;rer l'&eacute;rosion). Pour autant les d&eacute;chets, eux, sont toujours pr&eacute;sents !</p></span><br/></div></div>
<div id="iat7h" style="min-height: 100px;"><div id="iqif7" class="field">Label: <span id="ithxw">first</span><br/></div><div id="i22mm" class="field">Title: <span id="i3yrx"></span><br/></div><div id="iqoyh" class="field">Text: <span id="idam9"><p>first</p></span><br/></div></div>
<div id="iat7h" style="min-height: 100px;"><div id="iqif7" class="field">Label: <span id="ithxw">second</span><br/></div><div id="i22mm" class="field">Title: <span id="i3yrx"></span><br/></div><div id="iqoyh" class="field">Text: <span id="idam9"><p>second</p></span><br/></div></div><div id="i06yk"><div id="i7v3g"><A id="iv80l" href="/hosting/posts-fr/1/">Next</A> (<span id="imf3q">1</span><span id="iaemo"> /</span><span id="iuexr">2</span>)<br/></div></div></body>
</html>
Loading

0 comments on commit 814a589

Please sign in to comment.