can hugo new
create multiple md files?
If so, how? stringing them up with , or ; didn’t work.
can hugo new
create multiple md files?
If so, how? stringing them up with , or ; didn’t work.
No, you will have to script it.
Not what I hoped for, but thanks for the clarity
Would be useful to have the ‘single file only’ in the docs though.
In the meantime I used this notepad++ workaround, created a archy.txt and used that inside the target folder:
Another way to create multiple files without scripting, would be to use an editor with multiple cursors to insert the command hugo new
at the beginning of each line.
Then simply copy and paste the contents of the file in a terminal window and watch it work.
(the last command in the list would need you to hit the enter
key so that it executes)
There are probably a few methods that can be used. Now, 15 Minutes later, I tried the notepad++ method on a few folders and it works brilliantly.
I create an archy.txt
with whatever pre-format (archetype etc) I need.
Then create the list of *.md
files
In notepad++ use alt+c
to add copy archy.txt
in front of the filenames
Save the created file list as run.bat
und run it in CMD
This was a rather stupid suggestion. Here is a clean hugo way
*.md
files in rootalt+c
to add hugo new
in front of the filenamesrun.bat
und run it in CMD