Skip to content

Add lang pattern matching in "hugo new" #5234

@bep

Description

@bep

Also see #4535 and #5233.

It would be good to allow glob patterns in the new --lang flag to create new content for each of the matching languages:

hugo new --lang="*" post/my-post.md

This is especially useful to create new nested sections.

(I assume asterisk needs to be quoted in bash, will test)

/cc @RickCogley @kaushalmodi @regisphilibert @spf13 @anthonyfok and gang.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions