From 327b38f35bac35054c4aa1474d0b0e76975cb767 Mon Sep 17 00:00:00 2001 From: Devin Haska Date: Sat, 17 Feb 2024 00:10:43 -0800 Subject: [PATCH] feat: move categories to tags --- config/collections/index.js | 67 +++---------------- config/filters/index.js | 41 ++++++++++++ eleventy.config.js | 19 +++--- src/_layouts/post.html | 4 +- src/content/catalogue/books/books.json | 2 +- src/content/catalogue/catalogue.json | 3 + src/content/pages/catalogue.html | 3 +- src/content/pages/posts.html | 2 +- src/content/pages/tag.html | 14 ++-- src/content/pages/tags.html | 7 +- src/content/posts/2020-in-review-01-2021.md | 2 +- .../posts/2021-ranked-games-01-2022.md | 2 +- ...a-primer-on-canadian-government-01-2021.md | 2 +- .../posts/apple-watch-thoughts-2019.md | 2 +- src/content/posts/checking-in-11-2021.md | 2 +- src/content/posts/coming-back-to-vinyl.md | 2 +- src/content/posts/give-in-to-feel-good.md | 2 +- src/content/posts/gmtk-post-mortem-2021.md | 2 +- src/content/posts/how-this-blog-works.md | 2 +- src/content/posts/its-been-a-while-10-2022.md | 2 +- src/content/posts/lately-01-2024.md | 2 +- src/content/posts/my-vim-setup-04-2021.md | 2 +- src/content/posts/my-vinyl-journey.md | 2 +- src/content/posts/posts.json | 2 +- .../posts/professional-development-in-2018.md | 2 +- .../posts/professional-development-in-2019.md | 2 +- src/content/posts/recently-01-2021.md | 2 +- src/content/posts/recently-02-2022.md | 2 +- src/content/posts/recently-03-2021.md | 2 +- src/content/posts/recently-04-2021.md | 3 +- src/content/posts/recently-05-2020.md | 2 +- src/content/posts/recently-05-2021.md | 2 +- src/content/posts/recently-06-2020.md | 2 +- src/content/posts/recently-06-2021.md | 3 +- src/content/posts/recently-07-2020.md | 2 +- src/content/posts/recently-07-2021.md | 2 +- src/content/posts/recently-08-2020.md | 2 +- src/content/posts/recently-09-2020.md | 2 +- src/content/posts/recently-10-2020.md | 2 +- src/content/posts/recently-11-2020.md | 2 +- src/content/posts/recently-12-2020.md | 2 +- .../posts/remember-to-be-nice-01-2021.md | 2 +- src/content/posts/stray-thoughts-1-09-2021.md | 2 +- src/content/posts/stray-thoughts-2-10-2021.md | 2 +- src/content/posts/stray-thoughts-3-10-2021.md | 3 +- src/content/posts/switching-to-protonmail.md | 2 +- ...dpoles-the-big-little-migration-01-2021.md | 2 +- .../posts/take-the-power-back-music.md | 2 +- ...w-stagg-a-review-of-the-details-01-2022.md | 2 +- .../posts/the-suspense-is-killing-me.md | 2 +- src/content/posts/version-2-09-2021.md | 2 +- src/content/posts/weaknotes-1.md | 3 +- src/content/posts/weaknotes-2.md | 3 +- src/content/posts/weaknotes-3.md | 3 +- src/content/posts/weaknotes-4.md | 3 +- src/content/posts/whats-next-09-2020.md | 2 +- 56 files changed, 125 insertions(+), 136 deletions(-) create mode 100644 src/content/catalogue/catalogue.json diff --git a/config/collections/index.js b/config/collections/index.js index 74854ec..320e8d4 100644 --- a/config/collections/index.js +++ b/config/collections/index.js @@ -1,65 +1,18 @@ -const path = require("path").posix; -const { dir } = require("../constants.js"); -const { slugifyString } = require("../utils.js"); +const postsByTag = (collection) => { + const posts = collection.getFilteredByTag("post"); -const getAllPosts = (collection) => { - const posts = collection.getFilteredByGlob( - path.join(dir.input, "content/posts/**/*.md"), - ); - return posts.reverse(); -}; + const postsByTag = {}; -const getAllPostCategories = (collection) => { - const posts = getAllPosts(collection); - - const allCategories = posts.flatMap((post) => post.data.categories); - - const categoryCounts = allCategories.reduce((acc, category) => { - if (acc[category]) { - acc[category]++; - } else { - acc[category] = 1; + for (const post of posts) { + for (const tag of post.data.tags) { + postsByTag[tag] ??= []; + postsByTag[tag].push(post); } + } - return acc; - }, {}); - - const categories = Object.entries(categoryCounts) - .map(([category, count]) => ({ - key: slugifyString(category), - title: category, - href: `/tags/${slugifyString(category)}`, - count: count, - })) - .sort((a, b) => b.count - a.count); - - return categories; -}; - -const getPostsByCategory = (collection) => { - const posts = getAllPosts(collection); - const categories = Object.keys(getAllPostCategories(collection)); - - const postsByCategory = categories - .map((category) => ({ - category, - posts: posts.filter((post) => post.data.categories.includes(category)), - })) - .sort((a, b) => b.posts.length - a.posts.length); - - return postsByCategory; -}; - -const getAllCatalogue = (collection) => { - const items = collection.getFilteredByGlob( - path.join(dir.input, "content/catalogue/**/*.md"), - ); - return items.reverse(); + return postsByTag; }; module.exports = { - getAllCatalogue, - getAllPostCategories, - getAllPosts, - getPostsByCategory, + postsByTag, }; diff --git a/config/filters/index.js b/config/filters/index.js index 092f858..8143685 100644 --- a/config/filters/index.js +++ b/config/filters/index.js @@ -4,6 +4,7 @@ const advancedFormat = require("dayjs/plugin/advancedFormat"); const postcss = require("postcss"); const cssnano = require("cssnano"); +const { default: slugify } = require("slugify"); const keys = Object.keys; const values = Object.values; @@ -40,6 +41,43 @@ const filterByCategory = (collection, category) => { return collection.filter((item) => item.data.categories.includes(category)); }; +const allTags = (collection, ignore = []) => { + const tagSet = new Set(collection.flatMap((item) => item.data.tags)); + + ignore.forEach((tag) => tagSet.delete(tag)); + + return [...tagSet]; +}; + +const allTagCounts = (collection, ignore = ["post"]) => { + if (!collection.length) { + throw new Error("Invalid collection, no items"); + } + + const tagCounts = new Map(); + + for (const item of collection) { + const tags = item.data.tags; + + tags?.forEach((tag) => tagCounts.set(tag, (tagCounts.get(tag) || 0) + 1)); + } + + ignore.forEach((tag) => tagCounts.delete(tag)); + + const tagArray = Array.from(tagCounts.entries()) + .map(([tag, count]) => ({ + tag, + count, + })) + .sort((a, b) => b.count - a.count); + + return tagArray; +}; + +const filter = (collection, filters = []) => { + return collection.filter((item) => !filters.includes(item)); +}; + module.exports = { entries, filterByCategory, @@ -48,4 +86,7 @@ module.exports = { minifyCss, organizeByDate, values, + allTags, + allTagCounts, + filter, }; diff --git a/eleventy.config.js b/eleventy.config.js index 9ea20be..53e7abd 100644 --- a/eleventy.config.js +++ b/eleventy.config.js @@ -1,9 +1,4 @@ -const { - getAllPosts, - getAllPostCategories, - getPostsByCategory, - getAllCatalogue, -} = require("./config/collections/index.js"); +const { postsByTag } = require("./config/collections/index.js"); const { dir } = require("./config/constants.js"); const { entries, @@ -13,6 +8,9 @@ const { organizeByDate, keys, filterByCategory, + allTags, + allTagCounts, + filter, } = require("./config/filters/index.js"); const markdown = require("./config/plugins/markdown.js"); const imageShortcode = require("./config/shortcodes/image.js"); @@ -25,14 +23,13 @@ module.exports = (eleventyConfig) => { require("./config/template-languages/css-config.js"), ); - eleventyConfig.addCollection("posts", getAllPosts); - eleventyConfig.addCollection("categories", getAllPostCategories); - eleventyConfig.addCollection("postsByCategory", getPostsByCategory); - eleventyConfig.addCollection("catalogue", getAllCatalogue); + // --------------------- Custom Collections ----------------------- + eleventyConfig.addCollection("postsByTag", postsByTag); // --------------------- Custom Filters ----------------------- + eleventyConfig.addFilter("allTagCounts", allTagCounts); eleventyConfig.addFilter("entries", entries); - eleventyConfig.addFilter("filterByCategory", filterByCategory); + eleventyConfig.addFilter("filter", filter); eleventyConfig.addFilter("formatDate", formatDate); eleventyConfig.addFilter("keys", keys); eleventyConfig.addFilter("minifyCss", minifyCss); diff --git a/src/_layouts/post.html b/src/_layouts/post.html index c8672ec..7c31e5b 100644 --- a/src/_layouts/post.html +++ b/src/_layouts/post.html @@ -9,9 +9,9 @@ layout: base {{ date | formatDate("MMMM D, YYYY") }}

{{ title }}

diff --git a/src/content/catalogue/books/books.json b/src/content/catalogue/books/books.json index 37fb026..a7f6ce7 100644 --- a/src/content/catalogue/books/books.json +++ b/src/content/catalogue/books/books.json @@ -1,5 +1,5 @@ { "layout": "catalogue", - "tags": "books", + "tags": "book", "permalink": "books/{{ page.fileSlug }}/index.html" } diff --git a/src/content/catalogue/catalogue.json b/src/content/catalogue/catalogue.json new file mode 100644 index 0000000..1ede474 --- /dev/null +++ b/src/content/catalogue/catalogue.json @@ -0,0 +1,3 @@ +{ + "tags": "catalogue" +} diff --git a/src/content/pages/catalogue.html b/src/content/pages/catalogue.html index 7ac3d4b..32a381a 100644 --- a/src/content/pages/catalogue.html +++ b/src/content/pages/catalogue.html @@ -5,5 +5,4 @@ title: Catalogue ---

Catalogue yo

-{% set items = collections.catalogue %} -{% include "partials/archive.html" %} +{% for item in collections.catalogue %}{{ item.data.tags | dump }}{% endfor %} diff --git a/src/content/pages/posts.html b/src/content/pages/posts.html index dcd5891..b6f197b 100644 --- a/src/content/pages/posts.html +++ b/src/content/pages/posts.html @@ -8,5 +8,5 @@ title: Posts

View all tags

-{% set items = collections.posts %} +{% set items = collections.post %} {% include "partials/archive.html" %} diff --git a/src/content/pages/tag.html b/src/content/pages/tag.html index 7fab49a..a5ad4fd 100644 --- a/src/content/pages/tag.html +++ b/src/content/pages/tag.html @@ -1,14 +1,14 @@ --- -eleventyComputed: - title: "Tag: {{ category.title }}" - permalink: "{{ category.href }}/index.html" layout: base pagination: - data: collections.categories + data: collections.postsByTag size: 1 - alias: category + alias: tag + filter: + - post +permalink: /tags/{{ tag | slugify }}/index.html --- -

Tag: {{ category.title }}

-{% set items = collections.posts | filterByCategory(category.title) %} +

Tag: {{ tag }}

+{% set items = collections.postsByTag[ tag ] %} {% include "partials/archive.html" %} diff --git a/src/content/pages/tags.html b/src/content/pages/tags.html index 00d3608..0561993 100644 --- a/src/content/pages/tags.html +++ b/src/content/pages/tags.html @@ -4,13 +4,14 @@ permalink: /tags/index.html title: All tags --- +{% set tags = collections.post | allTagCounts %}

{{ title }}

    - {% for category in collections.categories %} + {% for tag in tags %}
  1. - {{ category.title }} {{ category.count }} + {{ tag.tag }} {{ tag.count }}
  2. {% endfor %}
diff --git a/src/content/posts/2020-in-review-01-2021.md b/src/content/posts/2020-in-review-01-2021.md index 99cf7ff..5ed3336 100644 --- a/src/content/posts/2020-in-review-01-2021.md +++ b/src/content/posts/2020-in-review-01-2021.md @@ -2,7 +2,7 @@ title: "2020: In Review" date: 2021-01-09 excerpt: A remarkable year. -categories: ["year recap"] +tags: ["year recap"] --- How do you even begin to summarize the whirlwind that was 2020? What are the Greatest Hits? Here’s a short list: diff --git a/src/content/posts/2021-ranked-games-01-2022.md b/src/content/posts/2021-ranked-games-01-2022.md index 1d73e57..5643eb8 100644 --- a/src/content/posts/2021-ranked-games-01-2022.md +++ b/src/content/posts/2021-ranked-games-01-2022.md @@ -2,7 +2,7 @@ title: "2021 Ranked: Games" date: 2022-01-18T20:52:22.166Z excerpt: All of the games I played in 2021. Ranked. -categories: ["rankings"] +tags: ["rankings"] --- As we move onto the year ahead that will be 2022 (please don’t be the sequel everyone expects it to be), I always like to look at the past year and see what caught my attention. Let’s look at all the games I played in 2021. Keep in mind these didn’t all come out that year. Meanwhile I’ll rank them all. diff --git a/src/content/posts/a-primer-on-canadian-government-01-2021.md b/src/content/posts/a-primer-on-canadian-government-01-2021.md index ad61c91..273e7f9 100644 --- a/src/content/posts/a-primer-on-canadian-government-01-2021.md +++ b/src/content/posts/a-primer-on-canadian-government-01-2021.md @@ -2,7 +2,7 @@ title: A Primer on Canadian Government date: "2021-01-27" excerpt: Canada’s parliamentary system explained. -categories: ["canada", "government"] +tags: ["canada", "government"] --- In the last four years I’ve learned an awful lot about how the United States’ government functions at a high level, and even on specifics like the House and Senate processes. Meanwhile I’m foggy at best on how Canada’s government functions. I decided to educate myself. diff --git a/src/content/posts/apple-watch-thoughts-2019.md b/src/content/posts/apple-watch-thoughts-2019.md index 40361ad..4ca1519 100644 --- a/src/content/posts/apple-watch-thoughts-2019.md +++ b/src/content/posts/apple-watch-thoughts-2019.md @@ -2,7 +2,7 @@ title: Thoughts on the Apple Watch date: 2019-05-20 excerpt: My experience with the Series 3 Apple Watch, 11 months later. -categories: ["apple watch", "apple"] +tags: ["apple watch", "apple"] --- Since I started going to the gym regularly and kept watch on what foods I ate, I became more interested in monitoring my calories burned during workouts. Initially I thought I should get a Fitbit, but I wasn’t too fond of their lineup at the time. At the time of writing they also _still_ don’t sync to Apple or Android Health. When the Apple Watch was initially revealed I toyed with the idea of buying one, but had yet to come up with a compelling reason to buy it. Given my newfound interest in fitness and health, and that I had given the Watch a few months to bake - it seemed like now (June 2018) was good a time as ever to jump in. I decided one hot day that it was time for me to jump into the world of wearable tech. diff --git a/src/content/posts/checking-in-11-2021.md b/src/content/posts/checking-in-11-2021.md index f2431d4..3852a4d 100644 --- a/src/content/posts/checking-in-11-2021.md +++ b/src/content/posts/checking-in-11-2021.md @@ -2,7 +2,7 @@ title: Checking In date: 2021-11-24T07:03:52.766Z excerpt: Kept you waiting, huh? -categories: ["checking in"] +tags: ["checking in"] --- I’ve dropped my regular writing habit as of late. I wanted to write a quick post to say I’m doing alright. What’s happened recently? diff --git a/src/content/posts/coming-back-to-vinyl.md b/src/content/posts/coming-back-to-vinyl.md index 31b0bb5..57976a5 100644 --- a/src/content/posts/coming-back-to-vinyl.md +++ b/src/content/posts/coming-back-to-vinyl.md @@ -2,7 +2,7 @@ title: Coming back to vinyl date: 2019-09-14 excerpt: Sometimes minimalism goes too far. -categories: ["vinyl", "collecting", "minimalism"] +tags: ["vinyl", "collecting", "minimalism"] --- This is an update to my post from a few months ago about a cautionary tale into collecting vinyl. I stand by the post, but I wanted to mention that I’m back into the hobby. What happened? diff --git a/src/content/posts/give-in-to-feel-good.md b/src/content/posts/give-in-to-feel-good.md index dbd6290..83a025b 100644 --- a/src/content/posts/give-in-to-feel-good.md +++ b/src/content/posts/give-in-to-feel-good.md @@ -2,7 +2,7 @@ title: Give In to Feel Good date: 2020-08-16 excerpt: Procrastination isn’t just about laziness, is it? -categories: ["procrastination", "mental health"] +tags: ["procrastination", "mental health"] --- Procrastination is something I struggle with every single day. I find it often strikes as critical thoughts: diff --git a/src/content/posts/gmtk-post-mortem-2021.md b/src/content/posts/gmtk-post-mortem-2021.md index 8c282fc..c3d0f37 100644 --- a/src/content/posts/gmtk-post-mortem-2021.md +++ b/src/content/posts/gmtk-post-mortem-2021.md @@ -3,7 +3,7 @@ title: "GMTK Game Jam Post-Mortem" date: "2021-07-03T07:25:56.354Z" excerpt: My first game jam ever. draft: false -categories: ["gamejam", "gamedev"] +tags: ["gamejam", "gamedev"] --- This year I participated in the [GMTK Game Jam](https://gmtk.itch.io) with two friends. It lasted 48 hours from June 11th to 13th. My main responsibility was the art department. diff --git a/src/content/posts/how-this-blog-works.md b/src/content/posts/how-this-blog-works.md index a35254d..1b388a7 100644 --- a/src/content/posts/how-this-blog-works.md +++ b/src/content/posts/how-this-blog-works.md @@ -2,7 +2,7 @@ title: How this blog works date: 2019-04-13 excerpt: Everything powering this blog explained. -categories: ["gatsbyjs", "ssg", "react"] +tags: ["gatsbyjs", "ssg", "react"] --- --- diff --git a/src/content/posts/its-been-a-while-10-2022.md b/src/content/posts/its-been-a-while-10-2022.md index 261cf50..ea33561 100644 --- a/src/content/posts/its-been-a-while-10-2022.md +++ b/src/content/posts/its-been-a-while-10-2022.md @@ -2,7 +2,7 @@ title: "It's Been a While" date: 2022-10-02T03:07:55.330Z excerpt: February 2022 - September 2022. -categories: ["gba", "updates", "burnout"] +tags: ["gba", "updates", "burnout"] --- {% image "https://cdn.wonderfulfrog.com/unknown.jpg", "An AI generated image using the prompt 'a frog playing a game boy in watercolor'.", "" %} diff --git a/src/content/posts/lately-01-2024.md b/src/content/posts/lately-01-2024.md index 6f22508..8f716e6 100644 --- a/src/content/posts/lately-01-2024.md +++ b/src/content/posts/lately-01-2024.md @@ -2,7 +2,7 @@ title: Lately date: 2024-01-02T03:36:21.754Z excerpt: Kept you waiting, huh? -categories: ["updates"] +tags: ["updates"] --- I know it's been a long time since my last post. Over a year in fact. I'd like to do a recap on the major life events, because there's been a lot! diff --git a/src/content/posts/my-vim-setup-04-2021.md b/src/content/posts/my-vim-setup-04-2021.md index cf95292..d69a375 100644 --- a/src/content/posts/my-vim-setup-04-2021.md +++ b/src/content/posts/my-vim-setup-04-2021.md @@ -3,7 +3,7 @@ title: My vim setup draft: false date: 2021-04-18T20:24:10.177Z excerpt: Everybody does it differently. -categories: ["vim", "development"] +tags: ["vim", "development"] --- {% image "https://cdn.wonderfulfrog.com/vimsetup.png", "A screenshot of my `vim` setup in action.", "" %} diff --git a/src/content/posts/my-vinyl-journey.md b/src/content/posts/my-vinyl-journey.md index 8aee135..9313f4e 100644 --- a/src/content/posts/my-vinyl-journey.md +++ b/src/content/posts/my-vinyl-journey.md @@ -2,7 +2,7 @@ title: My vinyl journey date: 2018-12-09 excerpt: A cautionary tale of getting into collecting records. -categories: ["music", "vinyl", "collecting"] +tags: ["music", "vinyl", "collecting"] --- **Update 04/16/2019**: See the updates section at the bottom for further discussion. diff --git a/src/content/posts/posts.json b/src/content/posts/posts.json index 1031729..9ef5221 100644 --- a/src/content/posts/posts.json +++ b/src/content/posts/posts.json @@ -1,5 +1,5 @@ { "layout": "post", - "tags": "posts", + "tags": "post", "permalink": "posts/{{ page.fileSlug }}/index.html" } diff --git a/src/content/posts/professional-development-in-2018.md b/src/content/posts/professional-development-in-2018.md index a905f06..71ea340 100644 --- a/src/content/posts/professional-development-in-2018.md +++ b/src/content/posts/professional-development-in-2018.md @@ -2,7 +2,7 @@ title: Professional development in 2018 date: 2019-01-07 excerpt: A look back at what happened in 2018 - professionally. For me. -categories: ["personal", "career", "growth", "react"] +tags: ["personal", "career", "growth", "react"] --- In 2018 I received the opportunity to develop my professional skills and further my career development. I’d like to highlight some developments and things I wish to focus on and improve in the next year. diff --git a/src/content/posts/professional-development-in-2019.md b/src/content/posts/professional-development-in-2019.md index 9959505..91e391b 100644 --- a/src/content/posts/professional-development-in-2019.md +++ b/src/content/posts/professional-development-in-2019.md @@ -2,7 +2,7 @@ title: Professional development in 2019 date: 2020-01-23 excerpt: A look back at what happened in 2019 - professionally. For me. -categories: ["career", "growth", "personal", "react", "swift"] +tags: ["career", "growth", "personal", "react", "swift"] --- {% image "https://cdn.wonderfulfrog.com/dude-pretending-to-read.png", "A dude sitting on a chair with legs crossed casually pretending to read but seemingly looking off into the distance with a confident smile, or perhaps to look at a neat dog. From Open Doodles.", "" %} diff --git a/src/content/posts/recently-01-2021.md b/src/content/posts/recently-01-2021.md index e09355f..eaa49aa 100644 --- a/src/content/posts/recently-01-2021.md +++ b/src/content/posts/recently-01-2021.md @@ -2,7 +2,7 @@ title: Recently date: 2021-02-01 excerpt: January 2021. -categories: ["recently"] +tags: ["recently"] --- It’s been a rough month. I’ve been struggling. I feel tired all the time and don’t know why. Smarter heads than me suggest it’s stress — with world events being what they are. diff --git a/src/content/posts/recently-02-2022.md b/src/content/posts/recently-02-2022.md index 36e9f07..ec17cd2 100644 --- a/src/content/posts/recently-02-2022.md +++ b/src/content/posts/recently-02-2022.md @@ -2,7 +2,7 @@ title: Recently date: 2022-02-01T23:49:47.158Z excerpt: February 2022. -categories: ["recently"] +tags: ["recently"] --- {% image "https://cdn.wonderfulfrog.com/lastfm-feb-2022.jpeg", "My most-played music last month.", "" %} diff --git a/src/content/posts/recently-03-2021.md b/src/content/posts/recently-03-2021.md index 4353349..e8d146e 100644 --- a/src/content/posts/recently-03-2021.md +++ b/src/content/posts/recently-03-2021.md @@ -2,7 +2,7 @@ title: Recently date: 2021-03-05 excerpt: February 2021. -categories: ["recently", "valheim"] +tags: ["recently", "valheim"] --- {% image "https://cdn.wonderfulfrog.com/forestsunrise.png", "A screenshot of Valheim with a sunrise coming through a thick, dense forest." , "" %} diff --git a/src/content/posts/recently-04-2021.md b/src/content/posts/recently-04-2021.md index 79d31b4..57849b3 100644 --- a/src/content/posts/recently-04-2021.md +++ b/src/content/posts/recently-04-2021.md @@ -1,9 +1,8 @@ --- title: Recently -draft: false date: 2021-04-01T19:03:49.841Z excerpt: March 2021. -categories: ["recently", "valheim"] +tags: ["recently", "valheim"] --- {% image "https://cdn.wonderfulfrog.com/coolbow.png", "My Valheim character under the moon." %} diff --git a/src/content/posts/recently-05-2020.md b/src/content/posts/recently-05-2020.md index 5491a58..1c15059 100644 --- a/src/content/posts/recently-05-2020.md +++ b/src/content/posts/recently-05-2020.md @@ -2,7 +2,7 @@ title: Recently date: 2020-05-18 excerpt: May 2020. -categories: ["recently"] +tags: ["recently"] --- A bad habit of mine is not updating my site with some new writing. After reading Tom MacWright's "[How to blog](https://macwright.org/2019/02/06/how-to-blog.html)" (and the rest of his fantastic site), I decided that I like the idea of writing on a schedule. So, I'm going to do my darnedest to makes sure I write something at least once a month. I like the title of "Recently", so I'm opting to steal that. diff --git a/src/content/posts/recently-05-2021.md b/src/content/posts/recently-05-2021.md index 8cd15d8..809ed18 100644 --- a/src/content/posts/recently-05-2021.md +++ b/src/content/posts/recently-05-2021.md @@ -3,7 +3,7 @@ title: Recently draft: false date: 2021-05-01T19:03:49.841Z excerpt: April 2021. -categories: ["recently"] +tags: ["recently"] --- {% image "https://cdn.wonderfulfrog.com/mistergotcha.png", "The Nib's 'Mister Gotcha' comic" %} diff --git a/src/content/posts/recently-06-2020.md b/src/content/posts/recently-06-2020.md index bbc52f6..532943b 100644 --- a/src/content/posts/recently-06-2020.md +++ b/src/content/posts/recently-06-2020.md @@ -2,7 +2,7 @@ title: Recently date: 2020-06-02 excerpt: June 2020. -categories: ["recently"] +tags: ["recently"] --- {% image "https://cdn.wonderfulfrog.com/wolfgang.jpg", "Wolfgang reading a book in an idyllic forest paradise", "" %} diff --git a/src/content/posts/recently-06-2021.md b/src/content/posts/recently-06-2021.md index 8bdae56..b855cff 100644 --- a/src/content/posts/recently-06-2021.md +++ b/src/content/posts/recently-06-2021.md @@ -1,9 +1,8 @@ --- title: Recently -draft: false date: 2021-06-01T19:03:49.841Z excerpt: May 2021. -categories: ["recently"] +tags: ["recently"] --- {% image "https://cdn.wonderfulfrog.com/coffee_time_with_dexter.jpg", "Miitopia: where you end up in cafe enjoying your coffee, with Dexter from Dexter's Lab being your barista.", "" %} diff --git a/src/content/posts/recently-07-2020.md b/src/content/posts/recently-07-2020.md index e53b780..75c90ac 100644 --- a/src/content/posts/recently-07-2020.md +++ b/src/content/posts/recently-07-2020.md @@ -2,7 +2,7 @@ title: Recently date: 2020-07-04 excerpt: July 2020. -categories: ["recently"] +tags: ["recently"] --- {% image "https://wonderfulfrog.b-cdn.net/lady-actually-reading.svg", "Lady reading her book in what must be eventually pretty uncomfortable, but at least she has a nice cactus. From Open Doodles.", "" %} diff --git a/src/content/posts/recently-07-2021.md b/src/content/posts/recently-07-2021.md index e5e6c85..7d35206 100644 --- a/src/content/posts/recently-07-2021.md +++ b/src/content/posts/recently-07-2021.md @@ -3,7 +3,7 @@ title: Recently draft: false date: 2021-07-05T00:11:37+00:00 excerpt: June 2021. -categories: ["recently"] +tags: ["recently"] --- The west coast just got over the heat dome. In my neck of the woods, that was easily the hottest it’s ever been here. Our car at one point said 46ºC. We were ill-equipped to deal with the heat — no AC and living on the top floor of our building. To beat the heat we ended up booking a hotel for a few days. It was an expensive solution, but the sanity gained more than made up for it. diff --git a/src/content/posts/recently-08-2020.md b/src/content/posts/recently-08-2020.md index 440f5a2..677d6ab 100644 --- a/src/content/posts/recently-08-2020.md +++ b/src/content/posts/recently-08-2020.md @@ -2,7 +2,7 @@ title: Recently date: 2020-08-02 excerpt: August 2020. -categories: ["recently"] +tags: ["recently"] --- I’ve been focusing on my mental health lately. It’s been largely ignored and I’ve decided I need to fix that. diff --git a/src/content/posts/recently-09-2020.md b/src/content/posts/recently-09-2020.md index 758b356..ece21b9 100644 --- a/src/content/posts/recently-09-2020.md +++ b/src/content/posts/recently-09-2020.md @@ -2,7 +2,7 @@ title: Recently date: 2020-09-02 excerpt: September 2020. -categories: ["recently"] +tags: ["recently"] --- Been feeling kind of low lately. Struggling to feel engaged and get started on some of my personal projects. Facing my inner demons as it were, and trying to get back on my feet. On the other hand, I’m working hard on my personal fitness, so that’s going well! 💪 diff --git a/src/content/posts/recently-10-2020.md b/src/content/posts/recently-10-2020.md index f3698ff..fb996b8 100644 --- a/src/content/posts/recently-10-2020.md +++ b/src/content/posts/recently-10-2020.md @@ -2,7 +2,7 @@ title: Recently date: 2020-10-04 excerpt: October 2020. -categories: ["recently"] +tags: ["recently"] --- It’s been a rough month, and it’s only the 4th. The [six-month COVID-19 wall][covid-wall] is hitting me hard. It’s hard to feel like doing more than existing right now. I’m glad I’ve been talking to a counsellor about things. It’s hard to even get the motivation to write this post. diff --git a/src/content/posts/recently-11-2020.md b/src/content/posts/recently-11-2020.md index 900cb8a..f80e0b3 100644 --- a/src/content/posts/recently-11-2020.md +++ b/src/content/posts/recently-11-2020.md @@ -2,7 +2,7 @@ title: Recently date: 2020-11-06 excerpt: November 2020. -categories: ["recently"] +tags: ["recently"] --- {% image "https://cdn.wonderfulfrog.com/e460bb30-2ef1-4a3c-af6d-f7ff9c696bac.jpeg", "A frog recounting his struggles about trying his hardest, and feeling like it’s never enough. By Cat's Cafe.", "" %} diff --git a/src/content/posts/recently-12-2020.md b/src/content/posts/recently-12-2020.md index 67f4282..9d61789 100644 --- a/src/content/posts/recently-12-2020.md +++ b/src/content/posts/recently-12-2020.md @@ -2,7 +2,7 @@ title: Recently date: 2020-12-07 excerpt: December 2020. -categories: ["recently"] +tags: ["recently"] --- {% image "https://wonderfulfrog.b-cdn.net/tumblr_594d8523021106f126390d49d5a0a1a0_1db9a35a_1280.jpg", "Little Big Things by Cat's Cafe", "" %} diff --git a/src/content/posts/remember-to-be-nice-01-2021.md b/src/content/posts/remember-to-be-nice-01-2021.md index 19a606b..911bd47 100644 --- a/src/content/posts/remember-to-be-nice-01-2021.md +++ b/src/content/posts/remember-to-be-nice-01-2021.md @@ -2,7 +2,7 @@ title: Remember to be nice date: 2021-01-12 excerpt: Open source is often a thankless job. -categories: ["open source", "signal"] +tags: ["open source", "signal"] --- [Signal][signal] is seeing a jump in activity after [WhatsApp recently made adjustments to their privacy policy][policychanges]. Coming from a paid, closed source, feature rich application like WhatsApp to an open source app like Signal can be a little jarring. Where is that favourite feature of mine? Why haven’t they prioritized it? So [Signal has to come out and remind people in the community to be nice][benice]. The developers only have so much free time. diff --git a/src/content/posts/stray-thoughts-1-09-2021.md b/src/content/posts/stray-thoughts-1-09-2021.md index d5f797b..86c31e8 100644 --- a/src/content/posts/stray-thoughts-1-09-2021.md +++ b/src/content/posts/stray-thoughts-1-09-2021.md @@ -2,7 +2,7 @@ title: Stray Thoughts 1 date: 2021-09-27T19:42:32.596Z excerpt: I can't decide what to call my weekly posts anymore. -categories: ["stray thoughts"] +tags: ["stray thoughts"] --- {% image "https://cdn.wonderfulfrog.com/collage.jpeg", "My popular last.fm scrobbles from the last week. From the top left: David Bowie - The Next Day, Turnstile - GLOW ON, Sleigh Bells - Texis, Angels & Airwaves - Lifeforms, Thrice - Horizons/East, Deafheaven - Infinite Granite, Japanese Breakfast - Jubilee, The Slang - Divide, Tyler, The Creator - IGOR", "" %} diff --git a/src/content/posts/stray-thoughts-2-10-2021.md b/src/content/posts/stray-thoughts-2-10-2021.md index cc6ffd9..fff553a 100644 --- a/src/content/posts/stray-thoughts-2-10-2021.md +++ b/src/content/posts/stray-thoughts-2-10-2021.md @@ -2,7 +2,7 @@ title: Stray Thoughts 2 date: 2021-10-03T22:35:21.592Z excerpt: Are collected thoughts really stray? -categories: ["stray thoughts"] +tags: ["stray thoughts"] --- {% image "https://cdn.wonderfulfrog.com/collage2.jpg", "This week's top last.fm artists." , "" %} diff --git a/src/content/posts/stray-thoughts-3-10-2021.md b/src/content/posts/stray-thoughts-3-10-2021.md index 788f217..4c750d6 100644 --- a/src/content/posts/stray-thoughts-3-10-2021.md +++ b/src/content/posts/stray-thoughts-3-10-2021.md @@ -2,8 +2,9 @@ title: Stray Thoughts 3 date: 2021-10-12T16:54:44.498Z excerpt: Sweater weather is here! -categories: ["stray thoughts"] +tags: ["stray thoughts"] --- + I've been fortunate to have vacation time for a few days. It was much needed R&R after a long haul of a project. I got to spend time with my partner — we had a special day where we did everything she wanted! There was plenty of tea shopping. I picked up [Metroid Dread](https://www.nintendo.com/games/detail/metroid-dread-switch/) on Friday. I'm a few hours in now. Here are my thoughts where I am: diff --git a/src/content/posts/switching-to-protonmail.md b/src/content/posts/switching-to-protonmail.md index 76e804b..701480d 100644 --- a/src/content/posts/switching-to-protonmail.md +++ b/src/content/posts/switching-to-protonmail.md @@ -2,7 +2,7 @@ title: Switching from Gmail to ProtonMail date: 2018-11-24 excerpt: The beginning of a quest to take back my data. -categories: [email, protonmail] +tags: [email, protonmail] --- I've been an avid Gmail user since its inception sometime in 2004. I remember hunting for a beta invite back when they were highly coveted. I have received 25,467 emails and sent 1,738. The first email I sent was to a local shop to buy my old G3 iMac. diff --git a/src/content/posts/tadpoles-the-big-little-migration-01-2021.md b/src/content/posts/tadpoles-the-big-little-migration-01-2021.md index f4b2797..dfeb8bb 100644 --- a/src/content/posts/tadpoles-the-big-little-migration-01-2021.md +++ b/src/content/posts/tadpoles-the-big-little-migration-01-2021.md @@ -2,7 +2,7 @@ title: "Tadpoles: The Big Little Migration" date: 2021-01-10 excerpt: A short film about frogs. -categories: ["short film", "frogs"] +tags: ["short film", "frogs"] --- TODO: YouTube: 5S-lZtE1J6M diff --git a/src/content/posts/take-the-power-back-music.md b/src/content/posts/take-the-power-back-music.md index 7c56acb..ffa3167 100644 --- a/src/content/posts/take-the-power-back-music.md +++ b/src/content/posts/take-the-power-back-music.md @@ -2,7 +2,7 @@ title: Take The Power Back (Over My Music) date: 2020-07-26 excerpt: One guy's struggle to regain ownership of some MP3 files. -categories: ["music", "beets", "plex"] +tags: ["music", "beets", "plex"] --- TODO: Come up with a YouTube shortcode for this video: qKSNABST4b0 diff --git a/src/content/posts/the-fellow-stagg-a-review-of-the-details-01-2022.md b/src/content/posts/the-fellow-stagg-a-review-of-the-details-01-2022.md index c388ce1..d54d53f 100644 --- a/src/content/posts/the-fellow-stagg-a-review-of-the-details-01-2022.md +++ b/src/content/posts/the-fellow-stagg-a-review-of-the-details-01-2022.md @@ -2,7 +2,7 @@ title: "The Fellow Stagg: A Review of the Details" date: 2022-01-22T21:35:22.320Z excerpt: Is it the Apple of kettles? -categories: ["tea", "reviews"] +tags: ["tea", "reviews"] --- {% image "https://cdn.wonderfulfrog.com/stagg-kettle.jpg", "A drawing of a Fellow Stagg kettle", "" %} diff --git a/src/content/posts/the-suspense-is-killing-me.md b/src/content/posts/the-suspense-is-killing-me.md index 836fba2..aba8ec1 100644 --- a/src/content/posts/the-suspense-is-killing-me.md +++ b/src/content/posts/the-suspense-is-killing-me.md @@ -2,7 +2,7 @@ title: How does React's Suspense work? date: 2019-10-26 excerpt: The Suspense is killing me. -categories: ["react"] +tags: ["react"] --- First and foremost, this post is writing about stuff that is part of the Experimental branch of React, so by the time you read this it could be out of date. I’ll try to keep things up to date as they develop. diff --git a/src/content/posts/version-2-09-2021.md b/src/content/posts/version-2-09-2021.md index fe83351..b02d53c 100644 --- a/src/content/posts/version-2-09-2021.md +++ b/src/content/posts/version-2-09-2021.md @@ -2,7 +2,7 @@ title: Version 2 date: 2021-09-19T00:50:06.409Z excerpt: Electric boogaloo. -categories: ["mdx", "development", "netlify", "eslint"] +tags: ["mdx", "development", "netlify", "eslint"] --- {% image "https://cdn.wonderfulfrog.com/v2lines.png", "That's a lot of lines!", "" %} diff --git a/src/content/posts/weaknotes-1.md b/src/content/posts/weaknotes-1.md index 9b4fed2..8dfdc03 100644 --- a/src/content/posts/weaknotes-1.md +++ b/src/content/posts/weaknotes-1.md @@ -1,9 +1,8 @@ --- title: Week 1 date: 2021-08-15T19:01:49.565Z -draft: false excerpt: A new week, a new format. -categories: ["weaknotes"] +tags: ["weaknotes"] --- I'm trying a new format with my writing. When it comes time to write my monthly log, I usually have either too much or not enough to write about. I'm taking a page from a [few][weaknotes1] [other blogs][weaknotes2] I found that use "weaknotes", which are Twitter-like posts of short (possibly random) thoughts. diff --git a/src/content/posts/weaknotes-2.md b/src/content/posts/weaknotes-2.md index c40a133..02638a7 100644 --- a/src/content/posts/weaknotes-2.md +++ b/src/content/posts/weaknotes-2.md @@ -1,9 +1,8 @@ --- title: Week 2 date: 2021-08-22T22:58:02.387Z -draft: false excerpt: Bit of a weird week. -categories: ["weaknotes"] +tags: ["weaknotes"] --- {% image "https://cdn.wonderfulfrog.com/noblewarrior_d2rbeta.png", "Like Link in Zelda, I have NobleWarrior the ever-living Paladin. Never the same character, but I always make a new one every so often.", "" %} diff --git a/src/content/posts/weaknotes-3.md b/src/content/posts/weaknotes-3.md index e3b5e20..e7e67ed 100644 --- a/src/content/posts/weaknotes-3.md +++ b/src/content/posts/weaknotes-3.md @@ -1,9 +1,8 @@ --- title: Week 3 date: 2021-08-30T00:07:20.030Z -draft: false excerpt: The One Where Apple Sucks A Lot. -categories: ["weaknotes"] +tags: ["weaknotes"] --- {% image "https://cdn.wonderfulfrog.com/podophobia.png", "", "" %} diff --git a/src/content/posts/weaknotes-4.md b/src/content/posts/weaknotes-4.md index f4d3128..8a5a9f1 100644 --- a/src/content/posts/weaknotes-4.md +++ b/src/content/posts/weaknotes-4.md @@ -1,9 +1,8 @@ --- title: Week 4 date: 2021-09-13T00:07:20.030Z -draft: false excerpt: It's the fourth one. -categories: ["weaknotes"] +tags: ["weaknotes"] --- {% image "https://cdn.wonderfulfrog.com/C0664BF8-4E3C-4285-8F5C-BECD7E0347B1.jpeg", "", "" %} diff --git a/src/content/posts/whats-next-09-2020.md b/src/content/posts/whats-next-09-2020.md index 1de976c..0d63d94 100644 --- a/src/content/posts/whats-next-09-2020.md +++ b/src/content/posts/whats-next-09-2020.md @@ -2,7 +2,7 @@ title: What’s Next? date: 2020-09-13 excerpt: From one framework to another. -categories: ["nextjs", "gatsbyjs", "tailwind"] +tags: ["nextjs", "gatsbyjs", "tailwind"] --- This site is now powered by NextJS. This is the site rebuild I have been talking about for some time, but it didn’t turn out the way I was planning.