Skip to content

Commit 112ed75

Browse files
committed
Refactor blog posts into directories and standardize routes and names
1 parent 893fa4a commit 112ed75

81 files changed

Lines changed: 66 additions & 1015 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.eleventy.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
const syntaxHighlight = require("@11ty/eleventy-plugin-syntaxhighlight");
22
const eleventyNavigationPlugin = require("@11ty/eleventy-navigation");
3-
const pluginRss = require("@11ty/eleventy-plugin-rss");
43
const { DateTime } = require("luxon");
54
const markdownIt = require("markdown-it");
65
const markdownItAnchor = require("markdown-it-anchor");
76

87
module.exports = function (eleventyConfig) {
98
eleventyConfig.addPassthroughCopy("static");
9+
eleventyConfig.addPassthroughCopy("src/blog/**/*.{gif,png,jpg,jpeg,svg}");
1010
eleventyConfig.addPassthroughCopy({ "./CNAME": "./CNAME" });
1111
eleventyConfig.addPlugin(syntaxHighlight);
1212
eleventyConfig.addPlugin(eleventyNavigationPlugin);
13-
eleventyConfig.addPlugin(pluginRss);
1413

1514
let markdownLibrary = markdownIt({
1615
html: true,

README.md

Lines changed: 0 additions & 4 deletions

buildmermaid.js

Lines changed: 0 additions & 28 deletions
This file was deleted.

package.json

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,16 @@
11
{
2-
"scripts": {
3-
"clean": "shx rm -rf _site",
4-
"build:mermaid": "node buildmermaid.js",
5-
"build:11ty": "npx @11ty/eleventy --input=./src",
6-
"build": "npm run build:mermaid && npm run build:11ty",
7-
"serve": "npx @11ty/eleventy --input=./src --serve"
8-
},
9-
"devDependencies": {
10-
"@11ty/eleventy": "^1.0.1",
11-
"@11ty/eleventy-navigation": "^0.3.3",
12-
"@11ty/eleventy-plugin-rss": "^1.2.0",
13-
"@11ty/eleventy-plugin-syntaxhighlight": "^4.1.0",
14-
"@mermaid-js/mermaid-cli": "^9.1.4",
15-
"luxon": "^2.4.0",
16-
"markdown-it": "^13.0.1",
17-
"markdown-it-anchor": "^8.6.5",
18-
"shx": "^0.3.4"
19-
}
2+
"scripts": {
3+
"clean": "shx rm -rf _site",
4+
"build": "npx @11ty/eleventy --input=./src",
5+
"serve": "npx @11ty/eleventy --input=./src --serve"
6+
},
7+
"devDependencies": {
8+
"@11ty/eleventy": "^1.0.1",
9+
"@11ty/eleventy-navigation": "^0.3.3",
10+
"@11ty/eleventy-plugin-syntaxhighlight": "^4.1.0",
11+
"luxon": "^2.4.0",
12+
"markdown-it": "^13.0.1",
13+
"markdown-it-anchor": "^8.6.5",
14+
"shx": "^0.3.4"
15+
}
2016
}

src/404.md

Lines changed: 1 addition & 1 deletion

src/_data/metadata.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
{
2-
"title": "Rupert 'fildon' McKay",
3-
"url": "https://rupertmckay.com/",
4-
"language": "en",
5-
"description": "The technical thoughts and creations of Rupert McKay."
2+
"title": "Rupert Foggo McKay",
3+
"description": "Rupert's website."
64
}

src/_includes/layouts/base.njk

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,9 @@
5555
<address>
5656
<a href="/blog/">Blog</a>
5757
<a href="https://github.com/fildon/">GitHub</a>
58-
<a rel="me" href="https://strangeobject.space/@fildon">Masto</a>
5958
<a href="mailto:rupert@rupertmckay.com">Email</a>
60-
<a href="https://rupertmckay.com/feed.xml">RSS</a>
6159
</address>
6260
</section>
6361
{{ content | safe }}
64-
<pre aria-hidden="true" class="morse">
65-
█ ███ █
66-
███ ███
67-
</pre>
6862
</body>
6963
</html>

src/blog/generics-arent-as-scary-as-you-think.md renamed to src/blog/01-generics-arent-as-scary-as-you-think/generics-arent-as-scary-as-you-think.md

Lines changed: 1 addition & 1 deletion

src/blog/how-to-create-custom-hooks.md renamed to src/blog/02-how-to-create-custom-hooks/how-to-create-custom-hooks.md

Lines changed: 1 addition & 1 deletion

src/blog/understanding-react-dependency-arrays.md renamed to src/blog/03-understanding-react-dependency-arrays/understanding-react-dependency-arrays.md

Lines changed: 19 additions & 18 deletions

0 commit comments

Comments
 (0)