Création de blog Hugo

VérifiéSûr

Créez des articles de blog optimisés SEO pour Hugo avec titres et descriptions générés automatiquement.

Spar Skills Guide Bot
ContenuIntermédiaire
5002/06/2026
Claude CodeCodex
#blog#hugo#seo#content-creation#writing

Recommandé pour

Notre avis

Crée un nouvel article de blog Hugo avec un titre et une description optimisés pour le référencement, en générant le fichier via Hugo CLI et en mettant à jour le frontmatter.

Points forts

  • Automatise la création d'articles de blog avec des métadonnées SEO.
  • Utilise l'échafaudage Hugo pour garantir une structure correcte.
  • Confirme le titre et la description avec l'utilisateur avant la création.
  • Génère dynamiquement l'année courante pour le chemin du fichier.

Limites

  • Nécessite que Hugo soit installé et configuré sur le système.
  • Ne fonctionne que pour les sites utilisant Hugo avec la structure par défaut.
  • Suppose que le répertoire du site est le répertoire de travail actuel.
Quand l'utiliser

Lorsque vous devez créer rapidement un nouvel article de blog Hugo avec un titre et une description optimisés SEO.

Quand l'éviter

Lorsque vous n'utilisez pas Hugo ou avez besoin d'une structure de blog personnalisée qui ne correspond pas aux conventions Hugo.

Analyse de sécurité

Sûr
Score qualité90/100

The skill only runs safe, essential shell commands (`date +%Y` and `hugo new`) with sanitized user input (filename stripped of special characters). No destructive, exfiltrating, or obfuscated actions.

Aucun point d'attention détecté

Exemples

Create a blog post about Hugo best practices
I want to create a new blog post on my Hugo site about Hugo best practices. Can you help me set it up with an SEO-friendly title and description?
Quick blog post creation
Create a new blog post for my Hugo blog at dabase.com about the benefits of static site generators.

name: blog description: Create a new blog post for dabase.com using Hugo with SEO-friendly title and description

Blog Post Creation Skill

You are helping the user create a new blog post for their Hugo-based blog at dabase.com.

Your Task

  1. Determine the current year:

    • Run: date +%Y to get the current year dynamically
  2. Ask the user for:

    • What is the blog post about? (Get a detailed description of the topic/content)
    • What title do they want? (Or offer to generate one based on the topic)
  3. Generate an SEO-friendly title and description:

    • Create a concise, compelling title if they don't provide one
    • Write a brief, SEO-optimized description (1-2 sentences) based on what the blog is about
    • Confirm both with the user before proceeding
  4. Generate the filename from the title:

    • Convert to lowercase
    • Replace spaces with hyphens
    • Remove special characters (keep only alphanumeric and hyphens)
    • Example: "My Great Post!" → "my-great-post.md"
  5. Create the blog post using Hugo:

    • Run: hugo new content/blog/YEAR/[filename].md (where YEAR is from step 1)
    • Hugo will automatically create the file with the correct frontmatter
  6. Update the frontmatter:

    • Read the newly created file
    • Update the title field with the confirmed title
    • Update the description field with the SEO-friendly description
    • Keep the auto-generated date field
  7. Confirm completion:

    • Show the file path: content/blog/YEAR/filename.md
    • Let them know they can start writing content
    • Suggest running hugo server to preview if needed

Important Notes

  • Use date +%Y to dynamically determine the current year
  • Use Hugo's hugo new command to bootstrap the post
  • Generate SEO-friendly titles and descriptions
  • Confirm the title and description with the user before creating the file
Skills similaires