Skip to content

Conversation

@nathenharvey
Copy link
Collaborator

@nathenharvey nathenharvey commented Jan 15, 2026

Improvements to the content creation workflow by adding a new archetype for insights and a utility script to automate the setup of new content and its corresponding tests.

Changes:

  • New Archetype: Added hugo/archetypes/insights.md to scaffold new insight articles with standard front
    matter (title, dates, authors, etc.).
  • Renamed Archetype: Renamed hugo/archetypes/devops-capabilities.md to hugo/archetypes/capabilities.md to better align with the project structure.
  • Refactored archetypes: Fixed up hugo/archetypes/capabilities.md and hugo/archetypes/research.md to use proper date formatting.
  • Automation Script: Added scripts/create_content.sh. This script:
    • Wraps hugo new to create content from the appropriate archetype.
    • Automatically generates a Playwright test file in test/playwright/tests/.
    • Populates the test file with a standard template, including imports and basic checks for title, header, updated date, and author visibility (specifically for insights).

Usage: ./scripts/create_content.sh insights/my-new-post.md

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a helpful content creation script and a new archetype for insights, which will streamline the content workflow. The changes are well-structured.

My review includes a few suggestions for the new shell script to improve its robustness and portability, including a fix for a path-handling bug. I've also suggested a minor improvement to the new insights archetype to align it with more common YAML conventions, which should make it easier for authors to use.

Why did the coffee file a police report? It got mugged!

@github-actions
Copy link

github-actions bot commented Jan 15, 2026

Visit the preview URL for this PR (updated for commit 944ee36):

https://doradotdev--pr1283-drafts-on-zacf5mnh.web.app

(expires Sat, 14 Feb 2026 20:23:28 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 7ad2b3cf9cceb558b493931176f998ae46924361

@nathenharvey nathenharvey force-pushed the push-rxqwrlqrmznr branch 2 times, most recently from 559063e to 51812d4 Compare January 15, 2026 16:31
@nathenharvey nathenharvey marked this pull request as ready for review January 15, 2026 16:35
This uses `hugo new` and depends on their being an archetype defined.

It creates the new content file and an initial playwright script for testing.
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.

2 participants