blog-new

Generate a Hugo blog post with dated directory and YAML frontmatter template.

1|Updated Dec 29, 2024
One-click install
npx skills add https://github.com/littlewwwhite/littlewwwhite.github.io --skill blog-new
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: blog-new
Source: https://github.com/littlewwwhite/littlewwwhite.github.io/tree/main/.claude/skills/blog-new
Command: npx skills add https://github.com/littlewwwhite/littlewwwhite.github.io --skill blog-new

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill streamlines the creation of new blog posts by setting up the correct directory structure and providing a template for the frontmatter, ensuring consistency and saving time.

Core Features & Use Cases

  • Automated Structure Creation: Generates the content/posts/YYMMDD/ directory structure required by Hugo.
  • Frontmatter Templating: Provides a pre-filled YAML frontmatter template for easy customization of title, date, categories, and tags.
  • Use Case: When you want to start writing a new article about a specific topic, you can use this skill to quickly set up the necessary files and structure, allowing you to focus on content creation.

Quick Start

Use the blog-new skill to create a new blog post with the title "My First Post".

Frequently Asked Questions about blog-new

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a new Hugo blog post with the correct Page Bundle structure?

To create a new Hugo blog post, this Skill generates a dated directory structure like `content/posts/YYMMDD/` and provides a pre-filled YAML frontmatter template. It automatically sets up the required file structure so you can focus on writing content.

What is the best way to automate Hugo frontmatter generation for new articles?

Automating Hugo frontmatter generation is handled by providing a pre-filled YAML template for easy customization of title, date, categories, and tags. This ensures consistency across articles by standardizing the metadata structure every time you start writing.

How does relative image path convention work when setting up Hugo Page Bundles?

Relative image path conventions in Hugo Page Bundles are maintained by generating a dated directory structure for each post. This setup ensures images are stored alongside the markdown file, allowing you to reference them using relative paths within the same folder.

Can I use this approach to prepare articles for Git-based version control?

Preparing articles for Git-based version control is supported by creating standardized file structures and content templates. By generating consistent directories and frontmatter, the files are immediately ready to be tracked and committed in a Git repository.

Do I need to manually create the content directory before writing a new post?

You do not need to manually create the content directory before writing a new post. The Skill automates the creation of the `content/posts/YYMMDD/` directory structure, eliminating manual setup and saving time.

Why use a conversational writing workflow for content creation?

A conversational writing workflow for content creation is facilitated by preparing the file structure and content template in advance. This allows you to focus entirely on drafting the article interactively without worrying about underlying file organization.