diff --git a/.editorconfig b/.editorconfig index d415404..844771f 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,7 +1,7 @@ root = true [*] -indent_style = space +indent_style = tab indent_size = 2 end_of_line = lf insert_final_newline = true diff --git a/_data/metadata.json b/_data/metadata.json index 94ecf0e..8d018b7 100644 --- a/_data/metadata.json +++ b/_data/metadata.json @@ -1,11 +1,11 @@ { - "title": "Your Blog Name", - "url": "https://example.com/", - "language": "en", - "description": "I am writing about my experiences as a naval navel-gazer.", - "author": { - "name": "Your Name Here", - "email": "youremailaddress@example.com", - "url": "https://example.com/about-me/" - } + "title": "Your Blog Name", + "url": "https://example.com/", + "language": "en", + "description": "I am writing about my experiences as a naval navel-gazer.", + "author": { + "name": "Your Name Here", + "email": "youremailaddress@example.com", + "url": "https://example.com/about-me/" + } } diff --git a/_includes/layouts/base.njk b/_includes/layouts/base.njk index 66bb7da..1eb00fa 100644 --- a/_includes/layouts/base.njk +++ b/_includes/layouts/base.njk @@ -1,44 +1,44 @@ - - - - {{ title or metadata.title }} - + + + + {{ title or metadata.title }} + - {#- Uncomment this if you’d like folks to know that you used Eleventy to build your site! #} - {#- #} + {#- Uncomment this if you’d like folks to know that you used Eleventy to build your site! #} + {#- #} - - - + + + - - - - - Skip to main content + + + + + Skip to main content -
- {{ metadata.title }} +
+ {{ metadata.title }} - {#- Read more about `eleventy-navigation` at https://www.11ty.dev/docs/plugins/navigation/ #} - -
+ {#- Read more about `eleventy-navigation` at https://www.11ty.dev/docs/plugins/navigation/ #} + +
-
- {{ content | safe }} -
+
+ {{ content | safe }} +
- + - - + + diff --git a/_includes/layouts/home.njk b/_includes/layouts/home.njk index d71000f..42ef101 100644 --- a/_includes/layouts/home.njk +++ b/_includes/layouts/home.njk @@ -3,13 +3,13 @@ layout: layouts/base.njk ---
- -
    -
  1. Edit the _data/metadata.json with your blog’s information.
  2. -
  3. (Optional) Edit eleventy.config.js with your configuration preferences.
  4. -
  5. Delete this message from _includes/layouts/home.njk.
  6. -
-

This is an Eleventy project created from the eleventy-base-blog repo.

+ +
    +
  1. Edit the _data/metadata.json with your blog’s information.
  2. +
  3. (Optional) Edit eleventy.config.js with your configuration preferences.
  4. +
  5. Delete this message from _includes/layouts/home.njk.
  6. +
+

This is an Eleventy project created from the eleventy-base-blog repo.

diff --git a/_includes/layouts/post.njk b/_includes/layouts/post.njk index 01f6583..68228ea 100644 --- a/_includes/layouts/post.njk +++ b/_includes/layouts/post.njk @@ -4,24 +4,22 @@ layout: layouts/base.njk

{{ title }}

{{ content | safe }} -
- {%- if collections.posts %} {%- set previousPost = collections.posts | getPreviousCollectionItem %} {%- set nextPost = collections.posts | getNextCollectionItem %} {%- if nextPost or previousPost %} -