gohugoio / hugo

The world’s fastest framework for building websites.
https://gohugo.io
Apache License 2.0
73.52k stars 7.38k forks source link

Add lang pattern matching in "hugo new" #5234

Open bep opened 5 years ago

bep commented 5 years ago

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.

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. The resources of the Hugo team are limited, and so we are asking for your help. If this is a bug and you can still reproduce this error on the master branch, please reply with all of the information you have about it in order to keep the issue open. If this is a feature request, and you feel that it is still relevant and valuable, please tell us why. This issue will automatically be closed in the near future if no further activity occurs. Thank you for all your contributions.