Chuck's Notes

A WordPress-based Digital Garden

Garden Meta Overview

Not sure what this is? Check out my post, What are digital gardens?

Inspirations


I wrote another blog post on 2023-11-09 with more meta details since someone asked. That is work checking out: https://cagrimmett.com/development/2023/11/09/notes-on-making-a-digital-garden-with-wordpress/


Structure

  • Pages are the garden. Every note is a page, and pages nest: top-level areas like Fly Fishing, Workshop and Food & Drink branch into notes, and notes branch into more notes.
    • Area pages list everything beneath them automatically with the Get Subpages List block. The theme renders that list as a full nested tree with child counts.
  • Posts are for the dated things: the occasional post, plus bookmarks, which are IndieBlocks notes with a link preview and a line on why I saved them.
  • Categories are hierarchical and theme based. Tags are topical and freeform.
  • Public and private pages. Private notes only show up when I’m signed in, including in their own section of the index.
  • The home page lists are built with GenerateBlocks, whose query loop can be customized just like you can in code with WP_Query. That’s how “Recently planted” and “Recently tended” can sort pages by published and modified date.
  • Cross-linking is handled by enabling trackbacks and pingbacks on pages.
    • add_post_type_support( 'page', 'trackbacks' );
  • Redirection watches permalink changes and 404s, so I can reorganize the garden without breaking links.
  • The Internet Archive’s Wayback Machine Link Fixer swaps dead outbound links for archived copies.
  • [x] Breadcrumbs on every note, via the core Breadcrumbs block from the Gutenberg plugin
  • [x] “Nearby in the garden”: every note shows its ancestors, siblings and children, via my Page Family Tree block
  • [x] A full index of every note, plus every category and tag
  • [x] Search that’s always in the header, via Jetpack Instant Search
  • [x] Last updated date and published date (planted/tended)
  • [x] Revisions, to show how notes have changed over time, via a Post Revisions Switcher block on the notes where the history matters
  • [x] Pingbacks and trackbacks, listed as “Linked from” in each note’s sidebar
  • [x] RSS (pages included) and JSON feeds, with WebSub pings when something changes
  • [x] Posts federate to the fediverse via ActivityPub, and reactions show up on the post
  • [ ] Webmentions (the Webmention plugin is installed but switched off for now)
  • [ ] Bi-directional linking
  • [ ] Show related content by category
  • [ ] Live preview of links (transclusion) on hover or focus

Theme

The garden runs on a custom block theme, Chuck’s Garden, a child theme of Blockbase. The code is on GitHub: cagrimmett/digital-garden-wp.

  • Reading. Set in ET Book on a warm paper palette with a rust accent, at a comfortable reading measure, with an automatic dark mode.
  • Margin rail. Every note has a sidebar with its planted and tended dates, categories, tags and the “Nearby in the garden” tree. It stays in view as you scroll long notes, and drops below the note on a phone.
  • Linked from. When another post links to a note, the pingback shows up at the bottom of the sidebar with the linking post’s title and date, instead of only being buried in the comments.
  • Growth stages. Notes tended in the last 30 days show “New growth”, and notes untouched for two years read “Dormant”. Both come from the real last-modified date.
  • Area pages. Branches show their whole subtree with child counts, and the sidebar doesn’t repeat the same list.
  • Protected notes. Marked with a small lock in lists instead of a “Protected:” prefix on the title.
  • Home. The areas, recently planted, recently tended and the latest bookmarks, each as a compact ruled list.
  • Archives and bookmarks. Dense, dated streams instead of spaced-out cards.
  • Lost paths. A 404 that says “Nothing planted here” and puts search and the index right there.

One response to “Garden Meta Overview”