diff --git a/_includes/layouts/base.njk b/_includes/layouts/base.njk index 2cee290..9e786bd 100644 --- a/_includes/layouts/base.njk +++ b/_includes/layouts/base.njk @@ -9,28 +9,28 @@ {#- Uncomment this if you’d like folks to know that you used Eleventy to build your site! #} {#- #} - - - - - + + + + + {%- set alternateUrls = page.url | locale_links %} {% if alternateUrls.length %} - + {%- for link in alternateUrls %} - + {%- endfor %} {%- endif %}
-

{{ metadata.title }}

+

{{ metadata.title }}

{#- Read more about `eleventy-navigation` at https://www.11ty.dev/docs/plugins/navigation/ #}
@@ -53,6 +53,6 @@ - + diff --git a/_includes/layouts/post.njk b/_includes/layouts/post.njk index 45f375c..83e5c56 100644 --- a/_includes/layouts/post.njk +++ b/_includes/layouts/post.njk @@ -8,7 +8,7 @@ templateClass: tmpl-post
  • {%- for tag in tags | filterTagList %} {%- set tagUrl %}/tags/{{ tag | slugify }}/{% endset %} -
  • {{ tag }}{%- if not loop.last %}, {% endif %}
  • +
  • {{ tag }}{%- if not loop.last %}, {% endif %}
  • {%- endfor %} @@ -35,8 +35,8 @@ templateClass: tmpl-post {%- set nextPost = collections.posts | getNextCollectionItem %} {%- if nextPost or previousPost %} {%- endif %} {%- endif %} diff --git a/_includes/postslist.njk b/_includes/postslist.njk index dd8c686..4ab5d75 100644 --- a/_includes/postslist.njk +++ b/_includes/postslist.njk @@ -1,7 +1,7 @@
      {% for post in postslist | reverse %}
    1. - {% if post.data.title %}{{ post.data.title }}{% else %}{{ post.url }}{% endif %} + {% if post.data.title %}{{ post.data.title }}{% else %}{{ post.url }}{% endif %}
    2. {% endfor %} diff --git a/eleventy.config.js b/eleventy.config.js index e629b36..e0a2612 100644 --- a/eleventy.config.js +++ b/eleventy.config.js @@ -22,6 +22,8 @@ module.exports = function(eleventyConfig) { eleventyConfig.addPlugin(pluginRss); eleventyConfig.addPlugin(pluginSyntaxHighlight); eleventyConfig.addPlugin(pluginNavigation); + eleventyConfig.addPlugin(EleventyHtmlBasePlugin); + eleventyConfig.addPlugin(EleventyI18nPlugin, { defaultLanguage: "en", errorMode: "allow-fallback", diff --git a/en/404.md b/en/404.md index 8b9aeea..bbedc2e 100644 --- a/en/404.md +++ b/en/404.md @@ -5,7 +5,7 @@ eleventyExcludeFromCollections: true --- # Content not found. -Go home. +Go home. {# Read more: https://www.11ty.dev/docs/quicktips/not-found/ diff --git a/en/blog/secondpost.md b/en/blog/secondpost.md index c764e7c..4947946 100644 --- a/en/blog/secondpost.md +++ b/en/blog/secondpost.md @@ -10,8 +10,8 @@ Leverage agile frameworks to provide a robust synopsis for high level overviews. ## Section Header -First post -Third post +First post +Third post Bring to the table win-win survival strategies to ensure proactive domination. At the end of the day, going forward, a new normal that has evolved from generation X is on the runway heading towards a streamlined cloud solution. User generated content in real-time will have multiple touchpoints for offshoring. diff --git a/en/en.11tydata.js b/en/en.11tydata.js index 7d01bf1..77633c0 100644 --- a/en/en.11tydata.js +++ b/en/en.11tydata.js @@ -4,6 +4,8 @@ module.exports = { // Change (English) /en/blog/my-post URLs to have an implied language code /blog/my-post URLs instead. let [slashPrefixEmpty, langCode, ...stem] = data.page.filePathStem.split("/"); let path = stem.join("/"); + + // Account for `permalink: 404.html` style return stem[stem.length - 1] === "index" ? `${path}.html` : `${path}/index.html`; } } diff --git a/en/index.njk b/en/index.njk index 1c35698..de365bb 100644 --- a/en/index.njk +++ b/en/index.njk @@ -11,7 +11,7 @@ eleventyNavigation: {% set postslistCounter = collections.posts | length %} {% include "postslist.njk" %} -

      More posts can be found in the archive.

      +

      More posts can be found in the archive.

      {# List all of the pages in the project