From fc4c6b21e6a067fb348283a3b6645e08efca555f Mon Sep 17 00:00:00 2001 From: Siarhei Bobryk Date: Tue, 4 May 2021 12:17:24 +0300 Subject: [PATCH 01/18] Use `metadata.language` for the `lang` attribute It's already `en` by default. --- _includes/layouts/base.njk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_includes/layouts/base.njk b/_includes/layouts/base.njk index ad6569e..9dfbcc4 100644 --- a/_includes/layouts/base.njk +++ b/_includes/layouts/base.njk @@ -1,5 +1,5 @@ - + From 5276137479510db72352bdff1b8b63812b254e55 Mon Sep 17 00:00:00 2001 From: Handrei Stoicescu Date: Wed, 2 Jun 2021 09:31:16 +0300 Subject: [PATCH 02/18] Replace tag with eleventyNavigation in navigation instructions Top level navigation has been updated in https://github.com/11ty/eleventy-base-blog/commit/c9018fa45bfde4f684f7de5b70673f47912672de to use `eleventyNavigation` instead of the `nav` tag. We have to update the readme file to also account for this change. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index fb7724c..8f87d6d 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,7 @@ DEBUG=* npx eleventy * `about/index.md` shows how to add a content page. * `posts/` has the blog posts but really they can live in any directory. They need only the `post` tag to be added to this collection. -* Add the `nav` tag to add a template to the top level site navigation. For example, this is in use on `index.njk` and `about/index.md`. +* Use the `eleventyNavigation` key in your front matter to add a template to the top level site navigation. For example, this is in use on `index.njk` and `about/index.md`. * Content can be any template format (blog posts needn’t be markdown, for example). Configure your supported templates in `.eleventy.js` -> `templateFormats`. * Because `css` and `png` are listed in `templateFormats` but are not supported template types, any files with these extensions will be copied without modification to the output (while keeping the same directory structure). * The blog post feed template is in `feed/feed.njk`. This is also a good example of using a global data files in that it uses `_data/metadata.json`. From 2145a3169ca212ed3e3f3203a972bc51947517b4 Mon Sep 17 00:00:00 2001 From: Andrei Stoicescu Date: Thu, 3 Jun 2021 20:10:08 +0300 Subject: [PATCH 03/18] Update readme instructions for css and images The instructions should be changed to properly reflect the way css and images are handled in the configuration. At the moment the instructions reference css and png files being handled via templateFormats, but in reality they're configured to be located in special css and img directories and handled via addPassthroughCopy(). --- README.md | 38 ++++++++++++++++++++------------------ 1 file changed, 20 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index fb7724c..a9c1c97 100644 --- a/README.md +++ b/README.md @@ -6,16 +6,16 @@ A starter repository showing how to build a blog with the [Eleventy](https://git ## Demos -* [Netlify](https://eleventy-base-blog.netlify.com/) -* [GitHub Pages](https://11ty.github.io/eleventy-base-blog/) -* [Remix on Glitch](https://glitch.com/~11ty-eleventy-base-blog) +- [Netlify](https://eleventy-base-blog.netlify.com/) +- [GitHub Pages](https://11ty.github.io/eleventy-base-blog/) +- [Remix on Glitch](https://glitch.com/~11ty-eleventy-base-blog) ## Deploy this to your own site These builders are amazing—try them out to get your own Eleventy site in a few clicks! -* [Get your own Eleventy web site on Netlify](https://app.netlify.com/start/deploy?repository=https://github.com/11ty/eleventy-base-blog) -* [Get your own Eleventy web site on Vercel](https://vercel.com/import/project?template=11ty%2Feleventy-base-blog) +- [Get your own Eleventy web site on Netlify](https://app.netlify.com/start/deploy?repository=https://github.com/11ty/eleventy-base-blog) +- [Get your own Eleventy web site on Vercel](https://vercel.com/import/project?template=11ty%2Feleventy-base-blog) ## Getting Started @@ -25,7 +25,6 @@ These builders are amazing—try them out to get your own Eleventy site in a few git clone https://github.com/11ty/eleventy-base-blog.git my-blog-name ``` - ### 2. Navigate to the directory ``` @@ -40,7 +39,7 @@ Specifically have a look at `.eleventy.js` to see if you want to configure any E npm install ``` -### 4. Edit _data/metadata.json +### 4. Edit \_data/metadata.json ### 5. Run Eleventy @@ -49,30 +48,33 @@ npx eleventy ``` Or build and host locally for local development + ``` npx eleventy --serve ``` Or build automatically when a template changes: + ``` npx eleventy --watch ``` Or in debug mode: + ``` DEBUG=* npx eleventy ``` ### Implementation Notes -* `about/index.md` shows how to add a content page. -* `posts/` has the blog posts but really they can live in any directory. They need only the `post` tag to be added to this collection. -* Add the `nav` tag to add a template to the top level site navigation. For example, this is in use on `index.njk` and `about/index.md`. -* Content can be any template format (blog posts needn’t be markdown, for example). Configure your supported templates in `.eleventy.js` -> `templateFormats`. - * Because `css` and `png` are listed in `templateFormats` but are not supported template types, any files with these extensions will be copied without modification to the output (while keeping the same directory structure). -* The blog post feed template is in `feed/feed.njk`. This is also a good example of using a global data files in that it uses `_data/metadata.json`. -* This example uses three layouts: - * `_includes/layouts/base.njk`: the top level HTML structure - * `_includes/layouts/home.njk`: the home page template (wrapped into `base.njk`) - * `_includes/layouts/post.njk`: the blog post template (wrapped into `base.njk`) -* `_includes/postlist.njk` is a Nunjucks include and is a reusable component used to display a list of all the posts. `index.njk` has an example of how to use it. +- `about/index.md` shows how to add a content page. +- `posts/` has the blog posts but really they can live in any directory. They need only the `post` tag to be added to this collection. +- Add the `nav` tag to add a template to the top level site navigation. For example, this is in use on `index.njk` and `about/index.md`. +- Content can be any template format (blog posts needn’t be markdown, for example). Configure your supported templates in `.eleventy.js` -> `templateFormats`. +- The `css` and `png` directories in the input directory are going to be copied without modification to the output, because they're passed to `addPassthroughCopy()`. +- The blog post feed template is in `feed/feed.njk`. This is also a good example of using a global data files in that it uses `_data/metadata.json`. +- This example uses three layouts: + - `_includes/layouts/base.njk`: the top level HTML structure + - `_includes/layouts/home.njk`: the home page template (wrapped into `base.njk`) + - `_includes/layouts/post.njk`: the blog post template (wrapped into `base.njk`) +- `_includes/postlist.njk` is a Nunjucks include and is a reusable component used to display a list of all the posts. `index.njk` has an example of how to use it. From 09ab6cfdbe1c094df32216e4f87f6433c0a7a2f4 Mon Sep 17 00:00:00 2001 From: Siim Pragi Date: Mon, 6 Sep 2021 15:14:40 +0300 Subject: [PATCH 04/18] Fix usage of `level` in the options object for `markdown-it-anchor` --- .eleventy.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.eleventy.js b/.eleventy.js index 16841f2..28ffd3a 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -73,9 +73,9 @@ module.exports = function(eleventyConfig) { permalink: markdownItAnchor.permalink.ariaHidden({ placement: "after", class: "direct-link", - symbol: "#", - level: [1,2,3,4], + symbol: "#" }), + level: [1,2,3,4], slugify: eleventyConfig.getFilter("slug") }); eleventyConfig.setLibrary("md", markdownLibrary); From ff77228991eb08cd22ae0b54ee720685bb66fb4c Mon Sep 17 00:00:00 2001 From: Peter deHaan Date: Tue, 15 Feb 2022 08:26:16 -0800 Subject: [PATCH 05/18] Update README.md Add `@11ty/` prefix to eleventy commands. (Per: https://www.11ty.dev/docs/usage/) FIxes #120 --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index fb7724c..4d90771 100644 --- a/README.md +++ b/README.md @@ -45,22 +45,22 @@ npm install ### 5. Run Eleventy ``` -npx eleventy +npx @11ty/eleventy ``` Or build and host locally for local development ``` -npx eleventy --serve +npx @11ty/eleventy --serve ``` Or build automatically when a template changes: ``` -npx eleventy --watch +npx @11ty/eleventy --watch ``` Or in debug mode: ``` -DEBUG=* npx eleventy +DEBUG=* npx @11ty/eleventy ``` ### Implementation Notes From 44dbdc7c801b1262a1e52147a0553f6c24d0382e Mon Sep 17 00:00:00 2001 From: Mohsen Azimi Date: Sat, 19 Mar 2022 20:38:41 -0300 Subject: [PATCH 06/18] Introduce dark mode and add fonts to base variables --- css/index.css | 63 +++++++++++++++++++++++++++++++++++++-------------- 1 file changed, 46 insertions(+), 17 deletions(-) diff --git a/css/index.css b/css/index.css index 25c9c82..5194188 100644 --- a/css/index.css +++ b/css/index.css @@ -1,13 +1,41 @@ /* Colors */ :root { - --lightgray: #e0e0e0; - --gray: #C0C0C0; - --darkgray: #333; - --navy: #17050F; - --blue: #082840; - --white: #fff; + /* levels go from closer to background color (0) to opposite to background color (100) */ + --color-gray-level-20: #e0e0e0; + --color-gray-level-50: #C0C0C0; + --color-gray-level-90: #333; + + --text-color-default: #000; + --text-color-link-default: #082840; + --text-color-link-visited: #17050F; + --text-color-invese: #fff; + + --background-color-default: #fff; + + + --font-family-default: -apple-system, system-ui, sans-serif; + --font-family-monospace: + Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", + "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", + "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace; } +@media (prefers-color-scheme: dark) { + :root { + --color-gray-level-20: #e0e0e0; + --color-gray-level-50: #C0C0C0; + --color-gray-level-90: #dad8d8; + + --text-color-default: #fff; + --text-color-link-default: #1269b0; + --text-color-link-visited: #7575a9; + --text-color-invese: #000; + + --background-color-default: #000; + } +} + + /* Global stylesheet */ * { box-sizing: border-box; @@ -17,9 +45,9 @@ html, body { padding: 0; margin: 0; - font-family: -apple-system, system-ui, sans-serif; - color: var(--darkgray); - background-color: var(--white); + font-family: var(--font-family-default); + color: var(--text-color-default); + background-color: var(--background-color-default); } p:last-child { margin-bottom: 0; @@ -34,10 +62,10 @@ p, line-height: 1.45; } a[href] { - color: var(--blue); + color: var(--text-color-link-default); } a[href]:visited { - color: var(--navy); + color: var(--text-color-link-visited); } main { padding: 1rem; @@ -46,7 +74,7 @@ main :first-child { margin-top: 0; } header { - border-bottom: 1px dashed var(--lightgray); + border-bottom: 1px dashed var(--color-gray-level-20); } header:after { content: ""; @@ -63,7 +91,7 @@ table th { pre, code { - font-family: Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace; + font-family: var(--font-family-monospace); line-height: 1.5; } pre { @@ -141,7 +169,7 @@ code { .postlist-date, .postlist-item:before { font-size: 0.8125em; /* 13px /16 */ - color: var(--darkgray); + color: var(--color-gray-level-90); } .postlist-date { word-spacing: -0.5px; @@ -173,8 +201,8 @@ code { margin-left: 0.6666666666667em; /* 8px /12 */ margin-top: 0.5em; /* 6px /12 */ margin-bottom: 0.5em; /* 6px /12 */ - color: var(--darkgray); - border: 1px solid var(--gray); + color: var(--color-gray-level-90); + border: 1px solid var(--color-gray-level-50); border-radius: 0.25em; /* 3px /12 */ text-decoration: none; line-height: 1.8; @@ -185,7 +213,8 @@ a[href].post-tag:visited { } a[href].post-tag:hover, a[href].post-tag:focus { - background-color: var(--lightgray); + background-color: var(--color-gray-level-20); + color: var(--text-color-invese) } .postlist-item > .post-tag { align-self: center; From 3a3440edddfe1862f484dd106c509f40cebb6e98 Mon Sep 17 00:00:00 2001 From: Mohsen Azimi Date: Sat, 19 Mar 2022 20:41:52 -0300 Subject: [PATCH 07/18] update warning color too --- css/index.css | 1 + 1 file changed, 1 insertion(+) diff --git a/css/index.css b/css/index.css index 5194188..10cf7ee 100644 --- a/css/index.css +++ b/css/index.css @@ -223,6 +223,7 @@ a[href].post-tag:focus { /* Warning */ .warning { background-color: #ffc; + color: var(--color-gray-level-50); padding: 1em 0.625em; /* 16px 10px /16 */ } .warning ol:only-child { From 322aba53f8312cfd1b3198a6e505538b1681ddd0 Mon Sep 17 00:00:00 2001 From: Mohsen Azimi Date: Sat, 19 Mar 2022 20:43:04 -0300 Subject: [PATCH 08/18] Update index.css --- css/index.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/css/index.css b/css/index.css index 10cf7ee..ca17868 100644 --- a/css/index.css +++ b/css/index.css @@ -223,7 +223,7 @@ a[href].post-tag:focus { /* Warning */ .warning { background-color: #ffc; - color: var(--color-gray-level-50); + color: var(--color-gray-level-90); padding: 1em 0.625em; /* 16px 10px /16 */ } .warning ol:only-child { From d643f6a27c773837f2823793c6f29443b70200c6 Mon Sep 17 00:00:00 2001 From: Zach Leatherman Date: Wed, 29 Jun 2022 09:23:00 -0500 Subject: [PATCH 09/18] Removes `nav` from filtered tag list for #100 --- tags.njk | 1 - 1 file changed, 1 deletion(-) diff --git a/tags.njk b/tags.njk index 0fbd53b..fa1158b 100644 --- a/tags.njk +++ b/tags.njk @@ -5,7 +5,6 @@ pagination: alias: tag filter: - all - - nav - post - posts - tagList From d05fe05b862a75ff42f2802fe0777fdff766ffbe Mon Sep 17 00:00:00 2001 From: Zach Leatherman Date: Wed, 29 Jun 2022 11:10:24 -0500 Subject: [PATCH 10/18] Some variable cleanup and color changes --- _includes/layouts/base.njk | 2 +- css/index.css | 93 ++++++++++++++++++++------------------ 2 files changed, 51 insertions(+), 44 deletions(-) diff --git a/_includes/layouts/base.njk b/_includes/layouts/base.njk index 4c4063b..a9c3217 100644 --- a/_includes/layouts/base.njk +++ b/_includes/layouts/base.njk @@ -26,7 +26,7 @@ -
+
  1. Edit the _data/metadata.json with your blog’s information.
  2. (Optional) Edit .eleventy.js with your configuration preferences.
  3. diff --git a/css/index.css b/css/index.css index ca17868..f83cadf 100644 --- a/css/index.css +++ b/css/index.css @@ -1,40 +1,36 @@ -/* Colors */ +/* Defaults */ :root { - /* levels go from closer to background color (0) to opposite to background color (100) */ - --color-gray-level-20: #e0e0e0; - --color-gray-level-50: #C0C0C0; - --color-gray-level-90: #333; + --font-family: -apple-system, system-ui, sans-serif; + --font-family-monospace: Consolas, Menlo, Monaco, Andale Mono WT, Andale Mono, Lucida Console, Lucida Sans Typewriter, DejaVu Sans Mono, Bitstream Vera Sans Mono, Liberation Mono, Nimbus Mono L, Courier New, Courier, monospace; +} - --text-color-default: #000; - --text-color-link-default: #082840; +/* Theme colors */ +:root { + --color-gray-20: #e0e0e0; + --color-gray-50: #C0C0C0; + --color-gray-90: #333; + + --background-color: #fff; + + --text-color: var(--color-gray-90); + --text-color-link: #082840; --text-color-link-visited: #17050F; - --text-color-invese: #fff; - - --background-color-default: #fff; - - - --font-family-default: -apple-system, system-ui, sans-serif; - --font-family-monospace: - Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", - "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", - "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace; } @media (prefers-color-scheme: dark) { :root { - --color-gray-level-20: #e0e0e0; - --color-gray-level-50: #C0C0C0; - --color-gray-level-90: #dad8d8; + --color-gray-20: #e0e0e0; + --color-gray-50: #C0C0C0; + --color-gray-90: #dad8d8; - --text-color-default: #fff; - --text-color-link-default: #1269b0; - --text-color-link-visited: #7575a9; - --text-color-invese: #000; - - --background-color-default: #000; + /* --text-color is assigned to --color-gray-_ above */ + --text-color-link: #1493fb; + --text-color-link-visited: #a6a6f8; + + --background-color: #15202b; } } - + /* Global stylesheet */ * { @@ -45,10 +41,11 @@ html, body { padding: 0; margin: 0; - font-family: var(--font-family-default); - color: var(--text-color-default); - background-color: var(--background-color-default); + font-family: var(--font-family); + color: var(--text-color); + background-color: var(--background-color); } + p:last-child { margin-bottom: 0; } @@ -61,12 +58,14 @@ p, .tmpl-post li { line-height: 1.45; } + a[href] { - color: var(--text-color-link-default); + color: var(--text-color-link); } a[href]:visited { color: var(--text-color-link-visited); } + main { padding: 1rem; } @@ -74,13 +73,14 @@ main :first-child { margin-top: 0; } header { - border-bottom: 1px dashed var(--color-gray-level-20); + border-bottom: 1px dashed var(--color-gray-20); } header:after { content: ""; display: table; clear: both; } + table { margin: 1em 0; } @@ -106,7 +106,6 @@ pre { -o-tab-size: 2; tab-size: 2; -webkit-hyphens: none; - -moz-hyphens: none; -ms-hyphens: none; hyphens: none; padding: 1em; @@ -169,7 +168,7 @@ code { .postlist-date, .postlist-item:before { font-size: 0.8125em; /* 13px /16 */ - color: var(--color-gray-level-90); + color: var(--color-gray-90); } .postlist-date { word-spacing: -0.5px; @@ -201,8 +200,8 @@ code { margin-left: 0.6666666666667em; /* 8px /12 */ margin-top: 0.5em; /* 6px /12 */ margin-bottom: 0.5em; /* 6px /12 */ - color: var(--color-gray-level-90); - border: 1px solid var(--color-gray-level-50); + color: var(--color-gray-90); + border: 1px solid var(--color-gray-50); border-radius: 0.25em; /* 3px /12 */ text-decoration: none; line-height: 1.8; @@ -213,20 +212,28 @@ a[href].post-tag:visited { } a[href].post-tag:hover, a[href].post-tag:focus { - background-color: var(--color-gray-level-20); - color: var(--text-color-invese) + background-color: var(--color-gray-20); } .postlist-item > .post-tag { align-self: center; } -/* Warning */ -.warning { - background-color: #ffc; - color: var(--color-gray-level-90); +/* Infobox */ +:root { + --color-infobox: #ffc; +} +@media (prefers-color-scheme: dark) { + :root { + --color-infobox: #082840; + } +} + +.infobox { + background-color: var(--color-infobox); + color: var(--color-gray-90); padding: 1em 0.625em; /* 16px 10px /16 */ } -.warning ol:only-child { +.infobox ol:only-child { margin: 0; } From e09f447a1dfca56435905388a6b4751f2f47c914 Mon Sep 17 00:00:00 2001 From: Zach Leatherman Date: Wed, 29 Jun 2022 11:40:22 -0500 Subject: [PATCH 11/18] Update dependencies --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 8984142..9c53546 100644 --- a/package.json +++ b/package.json @@ -27,8 +27,8 @@ "dependencies": { "@11ty/eleventy": "^1.0.1", "@11ty/eleventy-navigation": "^0.3.3", - "@11ty/eleventy-plugin-rss": "^1.1.2", - "@11ty/eleventy-plugin-syntaxhighlight": "^4.0.0", + "@11ty/eleventy-plugin-rss": "^1.2.0", + "@11ty/eleventy-plugin-syntaxhighlight": "^4.1.0", "luxon": "^2.4.0", "markdown-it": "^13.0.1", "markdown-it-anchor": "^8.6.4" From 8cc9cb8996b9a0e5a5f375ccc0a886d270bc16ab Mon Sep 17 00:00:00 2001 From: Zach Leatherman Date: Wed, 29 Jun 2022 12:02:12 -0500 Subject: [PATCH 12/18] Fixes https://github.com/11ty/eleventy-base-blog/issues/94 --- _includes/layouts/post.njk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_includes/layouts/post.njk b/_includes/layouts/post.njk index 4d7327c..df4210a 100644 --- a/_includes/layouts/post.njk +++ b/_includes/layouts/post.njk @@ -5,8 +5,8 @@ templateClass: tmpl-post

    {{ title }}

    -{%- for tag in tags | filterTagList -%} -{%- set tagUrl %}/tags/{{ tag | slug }}/{% endset -%} +{%- for tag in tags | filterTagList %} +{%- set tagUrl %}/tags/{{ tag | slug }}/{% endset %} {%- endfor %} From 137e76fb427bc804e05d099d886874d15c14d787 Mon Sep 17 00:00:00 2001 From: Zach Leatherman Date: Wed, 29 Jun 2022 12:03:41 -0500 Subject: [PATCH 13/18] Switch to use 1.0+ slugify filter instead --- .eleventy.js | 2 +- _includes/layouts/post.njk | 2 +- _includes/postslist.njk | 2 +- tags-list.njk | 2 +- tags.njk | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.eleventy.js b/.eleventy.js index 757c039..b784e22 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -72,7 +72,7 @@ module.exports = function(eleventyConfig) { symbol: "#" }), level: [1,2,3,4], - slugify: eleventyConfig.getFilter("slug") + slugify: eleventyConfig.getFilter("slugify") }); eleventyConfig.setLibrary("md", markdownLibrary); diff --git a/_includes/layouts/post.njk b/_includes/layouts/post.njk index df4210a..bf2d93f 100644 --- a/_includes/layouts/post.njk +++ b/_includes/layouts/post.njk @@ -6,7 +6,7 @@ templateClass: tmpl-post {%- for tag in tags | filterTagList %} -{%- set tagUrl %}/tags/{{ tag | slug }}/{% endset %} +{%- set tagUrl %}/tags/{{ tag | slugify }}/{% endset %} {%- endfor %} diff --git a/_includes/postslist.njk b/_includes/postslist.njk index d220513..ab8327a 100644 --- a/_includes/postslist.njk +++ b/_includes/postslist.njk @@ -4,7 +4,7 @@ {% if post.data.title %}{{ post.data.title }}{% else %}{{ post.url }}{% endif %} {% for tag in post.data.tags | filterTagList %} - {% set tagUrl %}/tags/{{ tag | slug }}/{% endset %} + {% set tagUrl %}/tags/{{ tag | slugify }}/{% endset %} {% endfor %} diff --git a/tags-list.njk b/tags-list.njk index 2553860..f129653 100644 --- a/tags-list.njk +++ b/tags-list.njk @@ -5,6 +5,6 @@ layout: layouts/home.njk

    Tags

    {% for tag in collections.tagList %} - {% set tagUrl %}/tags/{{ tag | slug }}/{% endset %} + {% set tagUrl %}/tags/{{ tag | slugify }}/{% endset %} {% endfor %} diff --git a/tags.njk b/tags.njk index fa1158b..852d923 100644 --- a/tags.njk +++ b/tags.njk @@ -12,7 +12,7 @@ pagination: layout: layouts/home.njk eleventyComputed: title: Tagged “{{ tag }}” -permalink: /tags/{{ tag | slug }}/ +permalink: /tags/{{ tag | slugify }}/ ---

    Tagged “{{ tag }}”

    From 57df62c916334f5a35abefdafa481d2320370630 Mon Sep 17 00:00:00 2001 From: Zach Leatherman Date: Wed, 29 Jun 2022 12:19:12 -0500 Subject: [PATCH 14/18] Fixes https://github.com/11ty/eleventy-base-blog/issues/91 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a3acdba..c4a8960 100644 --- a/README.md +++ b/README.md @@ -73,7 +73,7 @@ DEBUG=* npx @11ty/eleventy - `posts/` has the blog posts but really they can live in any directory. They need only the `post` tag to be added to this collection. - Use the `eleventyNavigation` key in your front matter to add a template to the top level site navigation. For example, this is in use on `index.njk` and `about/index.md`. - Content can be any template format (blog posts needn’t be markdown, for example). Configure your supported templates in `.eleventy.js` -> `templateFormats`. -- The `css` and `png` directories in the input directory are going to be copied without modification to the output, because they're passed to `addPassthroughCopy()`. +- The `css` and `img` directories in the input directory will be copied to the output folder (via `addPassthroughCopy()` in the `.eleventy.js` file). - The blog post feed template is in `feed/feed.njk`. This is also a good example of using a global data files in that it uses `_data/metadata.json`. - This example uses three layouts: - `_includes/layouts/base.njk`: the top level HTML structure From 53ee761e6ea37286c641766519fa05e214618ebf Mon Sep 17 00:00:00 2001 From: Zach Leatherman Date: Wed, 29 Jun 2022 14:28:21 -0500 Subject: [PATCH 15/18] Fixes https://github.com/11ty/eleventy-base-blog/issues/87 --- .nojekyll | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 .nojekyll diff --git a/.nojekyll b/.nojekyll new file mode 100644 index 0000000..e69de29 From 87c7dd40efc278717d09de219d33ff4a6c4315a8 Mon Sep 17 00:00:00 2001 From: Zach Leatherman Date: Wed, 29 Jun 2022 14:33:28 -0500 Subject: [PATCH 16/18] Fix https://github.com/11ty/eleventy-base-blog/issues/86 --- .eleventy.js | 1 - 1 file changed, 1 deletion(-) diff --git a/.eleventy.js b/.eleventy.js index b784e22..16a5614 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -63,7 +63,6 @@ module.exports = function(eleventyConfig) { // Customize Markdown library and settings: let markdownLibrary = markdownIt({ html: true, - breaks: true, linkify: true }).use(markdownItAnchor, { permalink: markdownItAnchor.permalink.ariaHidden({ From 66ca71e19c1c3597c6a1bde778d75141d73e62a5 Mon Sep 17 00:00:00 2001 From: Zach Leatherman Date: Wed, 29 Jun 2022 15:29:23 -0500 Subject: [PATCH 17/18] Eleventy Base Blog 7.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 9c53546..f72bff2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "eleventy-base-blog", - "version": "6.0.0", + "version": "7.0.0", "description": "A starter repository for a blog web site using the Eleventy static site generator.", "scripts": { "build": "npx @11ty/eleventy", From aa0db1449d84aadc8a13bdc2368c114c9e778740 Mon Sep 17 00:00:00 2001 From: Zach Leatherman Date: Thu, 30 Jun 2022 10:21:08 -0500 Subject: [PATCH 18/18] Make the opt-in in official starter projects too --- _includes/layouts/base.njk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/_includes/layouts/base.njk b/_includes/layouts/base.njk index dda6da7..a1787c9 100644 --- a/_includes/layouts/base.njk +++ b/_includes/layouts/base.njk @@ -5,7 +5,9 @@ {{ title or metadata.title }} - + + {#- Uncomment this if you’d like folks to know that you used Eleventy to build your site! #} + {#- #}