Skip to content

refactor(content): standardize on authors over redundant author key#46

Merged
HeyItsGilbert merged 3 commits into
mainfrom
standardize-authors-frontmatter
Jun 25, 2026
Merged

refactor(content): standardize on authors over redundant author key#46
HeyItsGilbert merged 3 commits into
mainfrom
standardize-authors-frontmatter

Conversation

@HeyItsGilbert

Copy link
Copy Markdown
Member

What

Every content file carried both author: (string) and authors: (list) with identical values — a mismatch scan confirmed the singular was always equal to authors[0] across all 1875 files (0 divergences). The authors: list already drives the Hugo taxonomy (hugo.yaml: author: authors); the singular author: only fed the byline display in three templates.

This collapses the redundancy onto the canonical authors key.

Changes

  • Bylines — repoint single.html, list.html, and index.html from .Params.author to index .Params.authors 0, preserving primary-author-only bylines (multi-author podcasts still show just the host).
  • Frontmatter — strip the redundant author: key from all 1874 content files (the one pre-edited article is excluded from this commit and carries its strip separately).
  • CMS config — drop the author field from the article/podcast content types in frontmatter.json and promote authors to required so Front Matter no longer re-adds the singular key.

Verification

  • Mismatch scan: 0 — every author: value already equalled authors[0], so nothing was lost.
  • Hugo build: 2492 pages, no template errors; the author-profile build guard (author.html warnf) never fired, so all author taxonomy terms still resolve.
  • Rendered spot-checks: single-author article → Gilbert Sanchez; multi-author podcast → only the primary author in the byline, guest correctly excluded.

Not touched

hugo.yaml params.author (site-level RSS/meta default) and the author: authors taxonomy declaration — both are correct and idiomatic.

🤖 Generated with Claude Code

Every content file carried both `author:` (string) and `authors:` (list)
with identical values — the singular was always equal to authors[0]. The
`authors:` list already drives the Hugo taxonomy (hugo.yaml: author:
authors); `author:` only fed the byline display in three templates.

- Repoint single/list/index bylines from `.Params.author` to
  `index .Params.authors 0`, preserving primary-author-only bylines.
- Strip the redundant `author:` key from all content frontmatter.
- Drop the `author` field from the article/podcast content types in
  frontmatter.json and promote `authors` to required so the CMS no
  longer re-adds the singular key.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@netlify

netlify Bot commented Jun 25, 2026

Copy link
Copy Markdown

Deploy Preview for powershellorg ready!

Name Link
🔨 Latest commit fb2f18a
🔍 Latest deploy log https://app.netlify.com/projects/powershellorg/deploys/6a3cd94c15c95c000809c639
😎 Deploy Preview https://deploy-preview-46--powershellorg.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

HeyItsGilbert and others added 2 commits June 25, 2026 00:31
Episodes authored solely by Andrew Pla (or Andrew Pla and Jordan Hammond)
omitted their on-mic guests from the authors list. Add each interviewed
guest to the frontmatter authors across 60 episodes, using each guest's
canonical name where established by their own dedicated episodes.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@HeyItsGilbert HeyItsGilbert merged commit 1ced9ae into main Jun 25, 2026
5 checks passed
@HeyItsGilbert HeyItsGilbert deleted the standardize-authors-frontmatter branch June 25, 2026 07:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant