Posts are back.
Posts are now a distinct content collection. If you’re seeing this, they are being merged with other content types at build time to generate daily entries. Currently, both days and individual posts can be tagged. Posts are tagged in Markdown frontmatter while days are tagged in a separate YAML metadata collection.
Git Commits
days commits 17
ohnsh/days-
11:04 pm — John Sherrell <dev@ohn.sh>
Moved day tags to top, right under title. No longer rendering year in title for posts later than this month last year.
-
10:09 pm — John Sherrell <dev@ohn.sh>
Fixed sidebar month-rendering bug related to JavaScript date parsing (i.e. plain dates are usually interpreted as midnight local time, but sometimes as midnight UTC, creating weird day/month/year boundary issues.)
-
9:34 pm — John Sherrell <dev@ohn.sh>
Changed tagMap values to Set<DayEntry> instead of DayEntry[] to avoid duplicates. (For example, I had both today and a post from today tagged "test" which caused the day to render twice at tags/test.) Also switched on title rendering for days on tags route.
-
9:23 pm — John Sherrell <dev@ohn.sh>
Sidebar now working on tags routes.
-
9:17 pm — John Sherrell <dev@ohn.sh>
Tag route is in decent shape now except the sidebar. Lots of refactoring and cleanup in src/lib. De-duplicating filtering and sidebar processing in components by moving it to lib/day.ts and lib/sidebar.ts. Learned to be very careful abou what I import in astro.config.mjs (created lib/const.ts with no side effects or dependencies for this purpose).
-
6:10 pm — John Sherrell <dev@ohn.sh>
Day tags and post tags now being rendered. It's confusing when they're adjacent--I'll need to think that through. The /tags route is mostly working without me even touching it. There are a few things to fix up, especially the sidebar.
-
5:59 pm — John Sherrell <dev@ohn.sh>
Posts now rendering. Overall intra-day layout needs a lot of work, but the content is mostly there. Still need to merge in tagging/metadata from yaml collection. Also need to get og:image working again.
-
5:28 pm — John Sherrell <dev@ohn.sh>
Prepping posts to be merged into daily feed.
-
4:51 pm — John Sherrell <dev@ohn.sh>
Fixed sidebar regression where the header and footer was lost when I started dynamically generating the content. Now the static config is a template with a literal '<slot />' item that is replaced dynamically with the generated entries.
-
2:26 pm — John Sherrell <dev@ohn.sh>
Add wrangler to gitignore.
-
2:22 pm — John Sherrell <dev@ohn.sh>
Merge branch 'virtual-days'
-
2:18 pm — John Sherrell <dev@ohn.sh>
Titles fixed, filtering implemented (year >= 2025 for now).
-
1:45 pm — John Sherrell <dev@ohn.sh>
Getting close. All routes rendering, pagination working. Still need to render actual post content, fix up titles, filter days, and get og:image extraction working again.
-
2:44 am — John Sherrell <dev@ohn.sh>
Refactoring new code.
-
2:23 am — John Sherrell <dev@ohn.sh>
Auto-collapse all but first year and month.
-
2:00 am — John Sherrell <dev@ohn.sh>
Proof of concept. It works. Needs lots of work, though.
-
12:17 am — John Sherrell <dev@ohn.sh>
Getting there.