From fc4c6b21e6a067fb348283a3b6645e08efca555f Mon Sep 17 00:00:00 2001 From: Siarhei Bobryk Date: Tue, 4 May 2021 12:17:24 +0300 Subject: [PATCH 01/24] 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/24] 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 8247b2073e5d6aeabcb671e9bfbef1f12d8d3eae Mon Sep 17 00:00:00 2001 From: Jens Oliver Meiert Date: Sat, 12 Jun 2021 19:50:33 +0200 Subject: [PATCH 03/24] fix: add `tr` element for valid markup Signed-off-by: Jens Oliver Meiert --- page-list.njk | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/page-list.njk b/page-list.njk index 0459d17..cb53ec6 100644 --- a/page-list.njk +++ b/page-list.njk @@ -8,8 +8,10 @@ permalink: /page-list/{% if pagination.pageNumber > 0 %}{{ pagination.pageNumber --- - - + + + + {%- for entry in entries %} From 3d0eefe897d8dc68bdf510569136073a6115c771 Mon Sep 17 00:00:00 2001 From: Jens Oliver Meiert Date: Tue, 15 Jun 2021 10:45:29 +0200 Subject: [PATCH 04/24] fix: convert URLs in post content Signed-off-by: Jens Oliver Meiert --- feed/json.njk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/feed/json.njk b/feed/json.njk index 93babae..40bba3c 100644 --- a/feed/json.njk +++ b/feed/json.njk @@ -21,7 +21,7 @@ eleventyExcludeFromCollections: true "id": "{{ absolutePostUrl }}", "url": "{{ absolutePostUrl }}", "title": "{{ post.data.title }}", - "content_html": {% if post.templateContent %}{{ post.templateContent | dump | safe }}{% else %}""{% endif %}, + "content_html": {% if post.templateContent %}{{ post.templateContent | htmlToAbsoluteUrls(absolutePostUrl) | dump | safe }}{% else %}""{% endif %}, "date_published": "{{ post.date | rssDate }}" } {%- if not loop.last -%} From 4a10406051d9fbc41ca194494fabce89f2311bac Mon Sep 17 00:00:00 2001 From: Zach Leatherman Date: Thu, 24 Jun 2021 08:23:11 -0500 Subject: [PATCH 05/24] =?UTF-8?q?We=20don=E2=80=99t=20need=20to=20manage?= =?UTF-8?q?=20this=20tags=20list=20in=20two=20places.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .eleventy.js | 9 +++++---- posts/thirdpost.md | 1 + tags-list.njk | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.eleventy.js b/.eleventy.js index 4cb6849..9e46827 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -41,10 +41,11 @@ module.exports = function(eleventyConfig) { return Math.min.apply(null, numbers); }); - eleventyConfig.addFilter("filterTagList", tags => { - // should match the list in tags.njk + function filterTagList(tags) { return (tags || []).filter(tag => ["all", "nav", "post", "posts"].indexOf(tag) === -1); - }) + } + + eleventyConfig.addFilter("filterTagList", filterTagList) // Create an array of all tags eleventyConfig.addCollection("tagList", function(collection) { @@ -53,7 +54,7 @@ module.exports = function(eleventyConfig) { (item.data.tags || []).forEach(tag => tagSet.add(tag)); }); - return [...tagSet]; + return filterTagList([...tagSet]); }); // Copy the `img` and `css` folders to the output diff --git a/posts/thirdpost.md b/posts/thirdpost.md index df0ee74..7740e12 100644 --- a/posts/thirdpost.md +++ b/posts/thirdpost.md @@ -4,6 +4,7 @@ description: This is a post on My Blog about win-win survival strategies. date: 2018-08-24 tags: - second tag + - posts with two tags layout: layouts/post.njk --- Leverage agile frameworks to provide a robust synopsis for high level overviews. Iterative approaches to corporate strategy foster collaborative thinking to further the overall value proposition. Organically grow the holistic world view of disruptive innovation via workplace diversity and empowerment. diff --git a/tags-list.njk b/tags-list.njk index d37ae36..2553860 100644 --- a/tags-list.njk +++ b/tags-list.njk @@ -4,7 +4,7 @@ layout: layouts/home.njk ---

Tags

-{% for tag in collections.tagList | filterTagList %} +{% for tag in collections.tagList %} {% set tagUrl %}/tags/{{ tag | slug }}/{% endset %} {% endfor %} From 6ac031cfa4ea20ce7ae86d600907abdc3c5826b5 Mon Sep 17 00:00:00 2001 From: Zach Leatherman Date: Mon, 26 Jul 2021 08:50:10 -0500 Subject: [PATCH 06/24] Restore the 4 hundos --- css/index.css | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/css/index.css b/css/index.css index 514f370..28be668 100644 --- a/css/index.css +++ b/css/index.css @@ -198,9 +198,11 @@ code { align-items: center; justify-content: center; text-transform: uppercase; - font-size: 0.6875em; /* 11px /16 */ - padding: 0.09090909090909em 0.3636363636364em; /* 1px 4px /11 */ - margin-left: 0.8em; /* 8px /10 */ + font-size: 0.75em; /* 12px /16 */ + padding: 0.08333333333333em 0.3333333333333em; /* 1px 4px /12 */ + 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); border-radius: 0.25em; /* 3px /12 */ From b63f9077aed72e4191a2e82634d2307522d3b98c Mon Sep 17 00:00:00 2001 From: Zach Leatherman Date: Wed, 28 Jul 2021 08:57:25 -0500 Subject: [PATCH 07/24] Additional safety for head check --- .eleventy.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.eleventy.js b/.eleventy.js index 9e46827..eb21532 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -29,6 +29,9 @@ module.exports = function(eleventyConfig) { // Get the first `n` elements of a collection. eleventyConfig.addFilter("head", (array, n) => { + if(!Array.isArray(array) || array.length === 0) { + return []; + } if( n < 0 ) { return array.slice(n); } From 8bffa6fce7b5189e34be123eed9e932e6e019ada Mon Sep 17 00:00:00 2001 From: Zach Leatherman Date: Wed, 28 Jul 2021 08:57:46 -0500 Subject: [PATCH 08/24] Only for non-empty collections. --- _includes/layouts/post.njk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/_includes/layouts/post.njk b/_includes/layouts/post.njk index 27d6e20..4d7327c 100644 --- a/_includes/layouts/post.njk +++ b/_includes/layouts/post.njk @@ -12,6 +12,7 @@ templateClass: tmpl-post {{ content | safe }} +{%- if collections.posts %} {%- set nextPost = collections.posts | getNextCollectionItem(page) %} {%- set previousPost = collections.posts | getPreviousCollectionItem(page) %} {%- if nextPost or previousPost %} @@ -21,3 +22,4 @@ templateClass: tmpl-post {%- if previousPost %}
  • Previous: {{ previousPost.data.title }}
  • {% endif %} {%- endif %} +{%- endif %} From 1be6346bde9ebe4afc23d7feaf0370817ad90f15 Mon Sep 17 00:00:00 2001 From: Zach Leatherman Date: Wed, 28 Jul 2021 09:05:01 -0500 Subject: [PATCH 09/24] Updates deps, including new major version of markdown-it-anchor. --- .eleventy.js | 10 +++++++--- package.json | 10 +++++----- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/.eleventy.js b/.eleventy.js index eb21532..16841f2 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -70,9 +70,13 @@ module.exports = function(eleventyConfig) { breaks: true, linkify: true }).use(markdownItAnchor, { - permalink: true, - permalinkClass: "direct-link", - permalinkSymbol: "#" + permalink: markdownItAnchor.permalink.ariaHidden({ + placement: "after", + class: "direct-link", + symbol: "#", + level: [1,2,3,4], + }), + slugify: eleventyConfig.getFilter("slug") }); eleventyConfig.setLibrary("md", markdownLibrary); diff --git a/package.json b/package.json index d4b3df8..37c8dfb 100644 --- a/package.json +++ b/package.json @@ -25,11 +25,11 @@ "homepage": "https://github.com/11ty/eleventy-base-blog#readme", "devDependencies": { "@11ty/eleventy": "^0.12.1", - "@11ty/eleventy-navigation": "^0.1.6", + "@11ty/eleventy-navigation": "^0.3.2", "@11ty/eleventy-plugin-rss": "^1.1.1", - "@11ty/eleventy-plugin-syntaxhighlight": "^3.1.0", - "luxon": "^1.26.0", - "markdown-it": "^12.0.4", - "markdown-it-anchor": "^7.1.0" + "@11ty/eleventy-plugin-syntaxhighlight": "^3.1.2", + "luxon": "^2.0.1", + "markdown-it": "^12.1.0", + "markdown-it-anchor": "^8.1.2" } } From e058ac3028a4818c4b12ec6f079862491a93fdad Mon Sep 17 00:00:00 2001 From: Zach Leatherman Date: Wed, 28 Jul 2021 09:06:34 -0500 Subject: [PATCH 10/24] Restore old luxon to keep Node compat levels. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 37c8dfb..9b1d216 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,7 @@ "@11ty/eleventy-navigation": "^0.3.2", "@11ty/eleventy-plugin-rss": "^1.1.1", "@11ty/eleventy-plugin-syntaxhighlight": "^3.1.2", - "luxon": "^2.0.1", + "luxon": "^1.26.0", "markdown-it": "^12.1.0", "markdown-it-anchor": "^8.1.2" } From 933b2886d116a5449d12c477261dee74cc59d68a Mon Sep 17 00:00:00 2001 From: Zach Leatherman Date: Sat, 8 Jan 2022 14:35:24 -0600 Subject: [PATCH 11/24] Update to Eleventy 1.0 --- .eleventy.js | 26 ++++++++++---------------- package.json | 14 +++++++------- 2 files changed, 17 insertions(+), 23 deletions(-) diff --git a/.eleventy.js b/.eleventy.js index 16841f2..6a939c3 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -7,14 +7,15 @@ const markdownIt = require("markdown-it"); const markdownItAnchor = require("markdown-it-anchor"); module.exports = function(eleventyConfig) { + // Copy the `img` and `css` folders to the output + eleventyConfig.addPassthroughCopy("img"); + eleventyConfig.addPassthroughCopy("css"); + // Add plugins eleventyConfig.addPlugin(pluginRss); eleventyConfig.addPlugin(pluginSyntaxHighlight); eleventyConfig.addPlugin(pluginNavigation); - // https://www.11ty.dev/docs/data-deep-merge/ - eleventyConfig.setDataDeepMerge(true); - // Alias `layout: post` to `layout: layouts/post.njk` eleventyConfig.addLayoutAlias("post", "layouts/post.njk"); @@ -60,10 +61,6 @@ module.exports = function(eleventyConfig) { return filterTagList([...tagSet]); }); - // Copy the `img` and `css` folders to the output - eleventyConfig.addPassthroughCopy("img"); - eleventyConfig.addPassthroughCopy("css"); - // Customize Markdown library and settings: let markdownLibrary = markdownIt({ html: true, @@ -108,6 +105,12 @@ module.exports = function(eleventyConfig) { "liquid" ], + // Pre-process *.md files with: (default: `liquid`) + markdownTemplateEngine: "njk", + + // Pre-process *.html files with: (default: `liquid`) + htmlTemplateEngine: "njk", + // ----------------------------------------------------------------- // If your site deploys to a subdirectory, change `pathPrefix`. // Don’t worry about leading and trailing slashes, we normalize these. @@ -122,15 +125,6 @@ module.exports = function(eleventyConfig) { pathPrefix: "/", // ----------------------------------------------------------------- - // Pre-process *.md files with: (default: `liquid`) - markdownTemplateEngine: "njk", - - // Pre-process *.html files with: (default: `liquid`) - htmlTemplateEngine: "njk", - - // Opt-out of pre-processing global data JSON files: (default: `liquid`) - dataTemplateEngine: false, - // These are all optional (defaults are shown): dir: { input: ".", diff --git a/package.json b/package.json index 9b1d216..73c23ae 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "eleventy-base-blog", - "version": "5.0.2", + "version": "6.0.0", "description": "A starter repository for a blog web site using the Eleventy static site generator.", "scripts": { "build": "eleventy", @@ -24,12 +24,12 @@ }, "homepage": "https://github.com/11ty/eleventy-base-blog#readme", "devDependencies": { - "@11ty/eleventy": "^0.12.1", + "@11ty/eleventy": "^1.0.0", "@11ty/eleventy-navigation": "^0.3.2", - "@11ty/eleventy-plugin-rss": "^1.1.1", - "@11ty/eleventy-plugin-syntaxhighlight": "^3.1.2", - "luxon": "^1.26.0", - "markdown-it": "^12.1.0", - "markdown-it-anchor": "^8.1.2" + "@11ty/eleventy-plugin-rss": "^1.1.2", + "@11ty/eleventy-plugin-syntaxhighlight": "^3.1.3", + "luxon": "^2.3.0", + "markdown-it": "^12.3.2", + "markdown-it-anchor": "^8.4.1" } } From aea9ea8cdbcd8b5e2d63ef4ba3621ff1e790210c Mon Sep 17 00:00:00 2001 From: Zach Leatherman Date: Tue, 8 Feb 2022 13:57:48 -0600 Subject: [PATCH 12/24] Removes Travis CI configuration file. --- .travis.yml | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index f7c4435..0000000 --- a/.travis.yml +++ /dev/null @@ -1,14 +0,0 @@ -language: node_js -node_js: - - 12 -before_script: - - npm install @11ty/eleventy -g -script: eleventy --pathprefix="/eleventy-base-blog/" -deploy: - local-dir: _site - provider: pages - skip-cleanup: true - github-token: $GITHUB_TOKEN # Set in travis-ci.org dashboard, marked secure - keep-history: true - on: - branch: master From 3eb6c6a67d94a002fffb0e8fad3497a27c4390df Mon Sep 17 00:00:00 2001 From: Zach Leatherman Date: Thu, 3 Mar 2022 17:11:08 -0600 Subject: [PATCH 13/24] Upgrade syntax highlighter to 4.0 and update example to use diff syntax --- _includes/layouts/base.njk | 1 + css/index.css | 30 ----------------------- css/prism-base16-monokai.dark.css | 1 - css/prism-diff.css | 40 +++++++++++++++++++++++++++++++ package.json | 4 ++-- posts/thirdpost.md | 6 ++--- 6 files changed, 46 insertions(+), 36 deletions(-) create mode 100644 css/prism-diff.css diff --git a/_includes/layouts/base.njk b/_includes/layouts/base.njk index ad6569e..4c4063b 100644 --- a/_includes/layouts/base.njk +++ b/_includes/layouts/base.njk @@ -7,6 +7,7 @@ + diff --git a/css/index.css b/css/index.css index 28be668..25c9c82 100644 --- a/css/index.css +++ b/css/index.css @@ -88,36 +88,6 @@ pre { code { word-break: break-all; } -.highlight-line { - display: block; - padding: 0.125em 1em; - text-decoration: none; /* override del, ins, mark defaults */ - color: inherit; /* override del, ins, mark defaults */ -} - -/* allow highlighting empty lines */ -.highlight-line:empty:before { - content: " "; -} -/* avoid double line breaks when using display: block; */ -.highlight-line + br { - display: none; -} - -.highlight-line-isdir { - color: #b0b0b0; - background-color: #222; -} -.highlight-line-active { - background-color: #444; - background-color: hsla(0, 0%, 27%, .8); -} -.highlight-line-add { - background-color: #45844b; -} -.highlight-line-remove { - background-color: #902f2f; -} /* Header */ .home { diff --git a/css/prism-base16-monokai.dark.css b/css/prism-base16-monokai.dark.css index dceb2a6..4a7889a 100644 --- a/css/prism-base16-monokai.dark.css +++ b/css/prism-base16-monokai.dark.css @@ -68,7 +68,6 @@ pre[class*="language-"] { text-decoration: line-through; } .token.inserted { - border-bottom: 1px dotted #f9f8f5; text-decoration: none; } .token.italic { diff --git a/css/prism-diff.css b/css/prism-diff.css new file mode 100644 index 0000000..797b0e5 --- /dev/null +++ b/css/prism-diff.css @@ -0,0 +1,40 @@ +/* + * New diff- syntax + */ + +pre[class*="language-diff-"] { + --eleventy-code-padding: 1.25em; + padding-left: var(--eleventy-code-padding); + padding-right: var(--eleventy-code-padding); +} +.token.deleted { + background-color: hsl(0, 51%, 37%); +} +.token.inserted { + background-color: hsl(126, 31%, 39%); +} + +/* Make the + and - characters unselectable for copy/paste */ +.token.prefix.unchanged, +.token.prefix.inserted, +.token.prefix.deleted { + -webkit-user-select: none; + user-select: none; + display: inline-flex; + align-items: center; + justify-content: center; + width: var(--eleventy-code-padding); + padding-top: 2px; + padding-bottom: 2px; + background-color: rgba(0,0,0,.2); +} + +/* Optional: full-width background color */ +.token.inserted:not(.prefix), +.token.deleted:not(.prefix) { + display: block; + margin-left: calc(-1 * var(--eleventy-code-padding)); + margin-right: calc(-1 * var(--eleventy-code-padding)); + text-decoration: none; /* override del, ins, mark defaults */ + color: inherit; /* override del, ins, mark defaults */ +} diff --git a/package.json b/package.json index 73c23ae..7166701 100644 --- a/package.json +++ b/package.json @@ -27,8 +27,8 @@ "@11ty/eleventy": "^1.0.0", "@11ty/eleventy-navigation": "^0.3.2", "@11ty/eleventy-plugin-rss": "^1.1.2", - "@11ty/eleventy-plugin-syntaxhighlight": "^3.1.3", - "luxon": "^2.3.0", + "@11ty/eleventy-plugin-syntaxhighlight": "^4.0.0", + "luxon": "^2.3.1", "markdown-it": "^12.3.2", "markdown-it-anchor": "^8.4.1" } diff --git a/posts/thirdpost.md b/posts/thirdpost.md index 7740e12..5fda350 100644 --- a/posts/thirdpost.md +++ b/posts/thirdpost.md @@ -9,12 +9,12 @@ layout: layouts/post.njk --- Leverage agile frameworks to provide a robust synopsis for high level overviews. Iterative approaches to corporate strategy foster collaborative thinking to further the overall value proposition. Organically grow the holistic world view of disruptive innovation via workplace diversity and empowerment. -``` js/2/4 +```diff-js // this is a command function myCommand() { - let counter = 0; ++ let counter = 0; - counter++; +- counter++; } From bc07327e60d5f87b15a63c3b07911ed7755f03dd Mon Sep 17 00:00:00 2001 From: Zach Leatherman Date: Thu, 3 Mar 2022 17:11:31 -0600 Subject: [PATCH 14/24] Remove alias --- .eleventy.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/.eleventy.js b/.eleventy.js index 6a939c3..f78dca3 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -16,9 +16,6 @@ module.exports = function(eleventyConfig) { eleventyConfig.addPlugin(pluginSyntaxHighlight); eleventyConfig.addPlugin(pluginNavigation); - // Alias `layout: post` to `layout: layouts/post.njk` - eleventyConfig.addLayoutAlias("post", "layouts/post.njk"); - eleventyConfig.addFilter("readableDate", dateObj => { return DateTime.fromJSDate(dateObj, {zone: 'utc'}).toFormat("dd LLL yyyy"); }); From a0e4cd96597fc03514e8a1cb80899c71964f70c9 Mon Sep 17 00:00:00 2001 From: Zach Leatherman Date: Thu, 3 Mar 2022 17:11:47 -0600 Subject: [PATCH 15/24] Switch devDeps to deps --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 7166701..cc3a224 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "url": "https://github.com/11ty/eleventy-base-blog/issues" }, "homepage": "https://github.com/11ty/eleventy-base-blog#readme", - "devDependencies": { + "dependencies": { "@11ty/eleventy": "^1.0.0", "@11ty/eleventy-navigation": "^0.3.2", "@11ty/eleventy-plugin-rss": "^1.1.2", From dc3e7c49f26461026aa92c446a637c7aefe3033a Mon Sep 17 00:00:00 2001 From: Zach Leatherman Date: Thu, 3 Mar 2022 17:14:08 -0600 Subject: [PATCH 16/24] Clean up the commands --- netlify.toml | 2 +- package.json | 11 ++++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/netlify.toml b/netlify.toml index 829d5e5..182a663 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,3 +1,3 @@ [build] publish = "_site" - command = "DEBUG=* eleventy" \ No newline at end of file + command = "npm run build" diff --git a/package.json b/package.json index cc3a224..5968b3e 100644 --- a/package.json +++ b/package.json @@ -3,11 +3,12 @@ "version": "6.0.0", "description": "A starter repository for a blog web site using the Eleventy static site generator.", "scripts": { - "build": "eleventy", - "watch": "eleventy --watch", - "serve": "eleventy --serve", - "start": "eleventy --serve", - "debug": "DEBUG=* eleventy" + "build": "npx @11ty/eleventy", + "bench": "DEBUG=Eleventy:Benchmark* npx @11ty/eleventy", + "watch": "npx @11ty/eleventy --watch", + "serve": "npx @11ty/eleventy --serve", + "start": "npx @11ty/eleventy --serve", + "debug": "DEBUG=* npx @11ty/eleventy" }, "repository": { "type": "git", From e96a1d6e072a1ceeba0356d0630645ea81a5c3e6 Mon Sep 17 00:00:00 2001 From: Zach Leatherman Date: Mon, 18 Apr 2022 13:46:01 -0500 Subject: [PATCH 17/24] Missed a diff syntax example --- posts/firstpost.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/posts/firstpost.md b/posts/firstpost.md index 21b3d6c..88ee86a 100644 --- a/posts/firstpost.md +++ b/posts/firstpost.md @@ -14,11 +14,11 @@ Bring to the table win-win survival strategies to ensure proactive domination. A Capitalize on low hanging fruit to identify a ballpark value added activity to beta test. Override the digital divide with additional clickthroughs from DevOps. Nanotechnology immersion along the information highway will close the loop on focusing solely on the bottom line. -``` text/2-3 +```diff-js // this is a command function myCommand() { - let counter = 0; - counter++; ++ let counter = 0; ++ counter++; } // Test with a line break above this line. From cb93e8799cb00b0245380c74e4c8a5455b33dcbc Mon Sep 17 00:00:00 2001 From: Zach Leatherman Date: Mon, 18 Apr 2022 13:53:03 -0500 Subject: [PATCH 18/24] Update to 1.0.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 5968b3e..07df356 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ }, "homepage": "https://github.com/11ty/eleventy-base-blog#readme", "dependencies": { - "@11ty/eleventy": "^1.0.0", + "@11ty/eleventy": "^1.0.1", "@11ty/eleventy-navigation": "^0.3.2", "@11ty/eleventy-plugin-rss": "^1.1.2", "@11ty/eleventy-plugin-syntaxhighlight": "^4.0.0", From cd67b57bd0356b61dd63f966af18a514d185f149 Mon Sep 17 00:00:00 2001 From: Zach Leatherman Date: Mon, 18 Apr 2022 13:55:31 -0500 Subject: [PATCH 19/24] Adds `` to eleventy-base-blog --- _includes/layouts/base.njk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/_includes/layouts/base.njk b/_includes/layouts/base.njk index 4c4063b..c122533 100644 --- a/_includes/layouts/base.njk +++ b/_includes/layouts/base.njk @@ -5,6 +5,8 @@ {{ title or metadata.title }} + + From 8771842fed6314500fd9aea7a0af87c82399dd28 Mon Sep 17 00:00:00 2001 From: Zach Leatherman Date: Fri, 13 May 2022 16:10:00 -0500 Subject: [PATCH 20/24] Update deps --- .eleventy.js | 8 +++++--- package.json | 8 ++++---- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.eleventy.js b/.eleventy.js index f78dca3..5801bc9 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -1,10 +1,12 @@ -const { DateTime } = require("luxon"); const fs = require("fs"); + +const { DateTime } = require("luxon"); +const markdownIt = require("markdown-it"); +const markdownItAnchor = require("markdown-it-anchor"); + const pluginRss = require("@11ty/eleventy-plugin-rss"); const pluginSyntaxHighlight = require("@11ty/eleventy-plugin-syntaxhighlight"); const pluginNavigation = require("@11ty/eleventy-navigation"); -const markdownIt = require("markdown-it"); -const markdownItAnchor = require("markdown-it-anchor"); module.exports = function(eleventyConfig) { // Copy the `img` and `css` folders to the output diff --git a/package.json b/package.json index 07df356..8984142 100644 --- a/package.json +++ b/package.json @@ -26,11 +26,11 @@ "homepage": "https://github.com/11ty/eleventy-base-blog#readme", "dependencies": { "@11ty/eleventy": "^1.0.1", - "@11ty/eleventy-navigation": "^0.3.2", + "@11ty/eleventy-navigation": "^0.3.3", "@11ty/eleventy-plugin-rss": "^1.1.2", "@11ty/eleventy-plugin-syntaxhighlight": "^4.0.0", - "luxon": "^2.3.1", - "markdown-it": "^12.3.2", - "markdown-it-anchor": "^8.4.1" + "luxon": "^2.4.0", + "markdown-it": "^13.0.1", + "markdown-it-anchor": "^8.6.4" } } From 24ac503d672dd8530e1ed0292f9bfbffbf65919d Mon Sep 17 00:00:00 2001 From: Zach Leatherman Date: Fri, 13 May 2022 16:11:39 -0500 Subject: [PATCH 21/24] Update the Node default --- .nvmrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.nvmrc b/.nvmrc index 48082f7..b6a7d89 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -12 +16 From b9cfffade035a5dabc9e678fe563d12ad36dfddc Mon Sep 17 00:00:00 2001 From: Zach Leatherman Date: Fri, 13 May 2022 17:09:06 -0500 Subject: [PATCH 22/24] Add link to deployment docs --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index fb7724c..648a839 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,7 @@ A starter repository showing how to build a blog with the [Eleventy](https://git These builders are amazing—try them out to get your own Eleventy site in a few clicks! +* Read more about [Deploying an Eleventy project](https://www.11ty.dev/docs/deployment/) * [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) From 2d3774c22513c03ea6c53af33f1aec1840b30b9b Mon Sep 17 00:00:00 2001 From: Zach Leatherman Date: Fri, 13 May 2022 17:10:25 -0500 Subject: [PATCH 23/24] Copy tweaks --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 648a839..af51ba3 100644 --- a/README.md +++ b/README.md @@ -12,12 +12,13 @@ A starter repository showing how to build a blog with the [Eleventy](https://git ## Deploy this to your own site -These builders are amazing—try them out to get your own Eleventy site in a few clicks! +Deploy this Eleventy site in just a few clicks on these services: -* Read more about [Deploying an Eleventy project](https://www.11ty.dev/docs/deployment/) * [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) +Or, read more about [Deploying an Eleventy project](https://www.11ty.dev/docs/deployment/). + ## Getting Started ### 1. Clone this Repository From d643f6a27c773837f2823793c6f29443b70200c6 Mon Sep 17 00:00:00 2001 From: Zach Leatherman Date: Wed, 29 Jun 2022 09:23:00 -0500 Subject: [PATCH 24/24] 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
    URLPage Title
    URLPage Title