# Garden Meta Overview

- Link: https://notes.cagrimmett.com/meta/garden-meta/
- Published: 2022-02-14T20:22:04-05:00
- Author: notes-cagrimmett

_Not sure what this is? Check out my post, [What are digital gardens?](https://cagrimmett.com/notes/2020/11/08/what-are-digital-gardens/)_

### Inspirations

 * [https://maggieappleton.com/garden](https://maggieappleton.com/garden)
 * [https://tomcritchlow.com/wiki/](https://tomcritchlow.com/wiki/)
 * [https://foggy.garden](https://foggy.garden)
 * [https://github.com/MaggieAppleton/digital-gardeners](https://github.com/MaggieAppleton/digital-gardeners)
 * [https://www.zylstra.org/blog/wiki-frontpage/](https://www.zylstra.org/blog/wiki-frontpage/)
 * [https://kb.chrisltd.com](https://kb.chrisltd.com)
 * [https://michaelnotebook.com/](https://michaelnotebook.com/)

---

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/](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](https://wordpress.org/plugins/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](https://indieblocks.xyz/) 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](https://wordpress.org/plugins/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](https://wordpress.org/support/article/glossary/#trackback)
   and [pingbacks](https://wordpress.org/support/article/glossary/#pingback) on 
   pages.
    - `add_post_type_support( 'page', 'trackbacks' );`
 * [Redirection](https://redirection.me/) watches permalink changes and 404s, so
   I can reorganize the garden without breaking links.
 * The Internet Archive’s [Wayback Machine Link Fixer](https://wordpress.org/plugins/internet-archive-wayback-machine-link-fixer/)
   swaps dead outbound links for archived copies.

### Navigability/discovery

 * [x] Breadcrumbs on every note, via the core Breadcrumbs block from the [Gutenberg plugin](https://wordpress.org/plugins/gutenberg/)
 * [x] “Nearby in the garden”: every note shows its ancestors, siblings and children,
   via my [Page Family Tree](https://github.com/cagrimmett/page-family-tree) block
 * [x] A [full index](https://notes.cagrimmett.com/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](https://wordpress.org/themes/blockbase/).
The code is on GitHub: [cagrimmett/digital-garden-wp](https://github.com/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.
