From c94aa3f6cf86b02cdfa61f5953186565056c0964 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Sun, 12 Jan 2020 15:52:09 -0500 Subject: [PATCH] Change permalink format --- lib/generate/posts.ts | 2 +- package-lock.json | 24 +++++++++--------- site/layouts/article.html.ejs | 2 +- site/posts/2016-05-05-hello-world.md | 2 +- site/posts/2016-05-21-194-porting-spree.md | 2 +- site/posts/2016-06-29-introducing-rtfm.md | 2 +- site/posts/2016-06-30-forge-1102-tutorials.md | 2 +- site/posts/2016-07-28-introducing-mirror.md | 2 +- site/posts/2016-08-06-kotlin-and-forge.md | 2 +- site/posts/2016-08-07-the-great-redesign.md | 2 +- site/posts/2016-10-02-type.md | 2 +- ...2017-02-13-the-pretty-good-minor-update.md | 2 +- .../2018-04-23-comments-powered-by-github.md | 4 +-- site/posts/2019-09-18-reincarnation.md | 1 + .../posts/2019-09-22-activitypub-resources.md | 1 + site/posts/2019-10-10-learning-elixir.md | 1 + .../2019-11-11-js-free-hamburger-menu.md | 1 + .../2019-12-22-mock-http-ios-ui-testing.md | 1 + .../js-free-hamburger-menu/background.html | 0 .../2019/js-free-hamburger-menu/dismiss.html | 0 .../2019/js-free-hamburger-menu/final.html | 0 .../2019/js-free-hamburger-menu/toggling.html | 0 .../js-free-hamburger-menu/transition.html | 0 .../2019/reincarnation/galactic_entity.png | Bin 24 files changed, 30 insertions(+), 25 deletions(-) rename site/static/{web => }/2019/js-free-hamburger-menu/background.html (100%) rename site/static/{web => }/2019/js-free-hamburger-menu/dismiss.html (100%) rename site/static/{web => }/2019/js-free-hamburger-menu/final.html (100%) rename site/static/{web => }/2019/js-free-hamburger-menu/toggling.html (100%) rename site/static/{web => }/2019/js-free-hamburger-menu/transition.html (100%) rename site/static/{meta => }/2019/reincarnation/galactic_entity.png (100%) diff --git a/lib/generate/posts.ts b/lib/generate/posts.ts index 9c7362b..0566061 100644 --- a/lib/generate/posts.ts +++ b/lib/generate/posts.ts @@ -20,7 +20,7 @@ export default async function posts(): Promise { let postMeta = page.metadata; postMeta.date = dateFns.parse(postMeta.date); postMeta.slug = postMeta.slug || slugify(postMeta.title); - postMeta.permalink = `/${postMeta.category}/${postMeta.date.getFullYear()}/${postMeta.slug}/`; + postMeta.permalink = `/${postMeta.date.getFullYear()}/${postMeta.slug}/`; } page.text = util.render(page.text, { metadata: page.metadata }, postPath); diff --git a/package-lock.json b/package-lock.json index 753aa1e..4dfe055 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1357,7 +1357,7 @@ }, "load-json-file": { "version": "1.1.0", - "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz", + "resolved": "http://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz", "integrity": "sha1-lWkFcI1YtLq0wiYbBPWfMcmTdMA=", "requires": { "graceful-fs": "^4.1.2", @@ -1494,7 +1494,7 @@ }, "meow": { "version": "3.7.0", - "resolved": "https://registry.npmjs.org/meow/-/meow-3.7.0.tgz", + "resolved": "http://registry.npmjs.org/meow/-/meow-3.7.0.tgz", "integrity": "sha1-cstmi0JSKCkKu/qFaJJYcwioAfs=", "requires": { "camelcase-keys": "^2.0.0", @@ -1547,7 +1547,7 @@ }, "minimist": { "version": "1.2.0", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", + "resolved": "http://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=" }, "mkdirp": { @@ -1638,7 +1638,7 @@ "dependencies": { "semver": { "version": "5.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.3.0.tgz", + "resolved": "http://registry.npmjs.org/semver/-/semver-5.3.0.tgz", "integrity": "sha1-myzl094C0XxgEq0yaqa00M9U+U8=" } } @@ -1743,12 +1743,12 @@ }, "os-homedir": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz", + "resolved": "http://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz", "integrity": "sha1-/7xJiDNuDoM94MFox+8VISGqf7M=" }, "os-locale": { "version": "1.4.0", - "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-1.4.0.tgz", + "resolved": "http://registry.npmjs.org/os-locale/-/os-locale-1.4.0.tgz", "integrity": "sha1-IPnxeuKe00XoveWDsT0gCYA8FNk=", "requires": { "lcid": "^1.0.0" @@ -1756,7 +1756,7 @@ }, "os-tmpdir": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", + "resolved": "http://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=" }, "osenv": { @@ -1933,7 +1933,7 @@ }, "pify": { "version": "2.3.0", - "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", + "resolved": "http://registry.npmjs.org/pify/-/pify-2.3.0.tgz", "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=" }, "pinkie": { @@ -2105,7 +2105,7 @@ }, "readable-stream": { "version": "2.3.6", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz", + "resolved": "http://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz", "integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==", "requires": { "core-util-is": "~1.0.0", @@ -2353,7 +2353,7 @@ }, "source-map": { "version": "0.4.4", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.4.4.tgz", + "resolved": "http://registry.npmjs.org/source-map/-/source-map-0.4.4.tgz", "integrity": "sha1-66T12pwNyZneaAMti092FzZSA2s=", "requires": { "amdefine": ">=0.0.4" @@ -2458,7 +2458,7 @@ }, "string-width": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", + "resolved": "http://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", "requires": { "code-point-at": "^1.0.0", @@ -2873,7 +2873,7 @@ }, "wrap-ansi": { "version": "2.1.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz", + "resolved": "http://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz", "integrity": "sha1-2Pw9KE3QV5T+hJc8rs3Rz4JP3YU=", "requires": { "string-width": "^1.0.1", diff --git a/site/layouts/article.html.ejs b/site/layouts/article.html.ejs index 3d0d490..f147d8c 100644 --- a/site/layouts/article.html.ejs +++ b/site/layouts/article.html.ejs @@ -17,7 +17,7 @@ metadata.layout = "default.html.ejs"

Comments powered by ActivityPub. To respond to this post or to another comment, copy its URL into the search interface of your client for Mastodon, Pleroma, or other compatible software. - Learn more. + Learn more.