diff --git a/.eleventy.js b/.eleventy.js index 952f7f2..f853843 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -1,11 +1,14 @@ const { DateTime } = require("luxon"); const markdownItAnchor = require("markdown-it-anchor"); +const { EleventyI18nPlugin } = require("@11ty/eleventy"); const pluginRss = require("@11ty/eleventy-plugin-rss"); const pluginSyntaxHighlight = require("@11ty/eleventy-plugin-syntaxhighlight"); const pluginNavigation = require("@11ty/eleventy-navigation"); module.exports = function(eleventyConfig) { + eleventyConfig.ignores.add("README.md"); + // Copy the `img` and `css` folders to the output eleventyConfig.addPassthroughCopy("img"); eleventyConfig.addPassthroughCopy("css"); @@ -14,6 +17,10 @@ module.exports = function(eleventyConfig) { eleventyConfig.addPlugin(pluginRss); eleventyConfig.addPlugin(pluginSyntaxHighlight); eleventyConfig.addPlugin(pluginNavigation); + eleventyConfig.addPlugin(EleventyI18nPlugin, { + defaultLanguage: "en", + errorMode: "allow-fallback", + }); eleventyConfig.addFilter("readableDate", dateObj => { return DateTime.fromJSDate(dateObj, {zone: 'utc'}).toFormat("dd LLL yyyy"); diff --git a/.eleventyignore b/.eleventyignore deleted file mode 100644 index b43bf86..0000000 --- a/.eleventyignore +++ /dev/null @@ -1 +0,0 @@ -README.md diff --git a/_includes/layouts/base.njk b/_includes/layouts/base.njk index a1787c9..7bf676f 100644 --- a/_includes/layouts/base.njk +++ b/_includes/layouts/base.njk @@ -1,5 +1,5 @@ - +
@@ -14,6 +14,8 @@ + + {# TODO add link rel="alternate" for langs #}More posts can be found in the archive.
+ + +{{ entry.url }}
URL | -Page Title | -
---|---|
{{ entry.url }} |
- {{ entry.data.title }} | -