You can use the shell script new
to auto generate boilterplate article .md
files, when you publish on hashnode from a GitHub source.
Simply run the script, this will gnerate a new .md
file with frontmatter in the directory the script is located.
./new
The file name will follow the format of YYYY-MM-DD_.md
. For example: 2021-12-31_.md
.
Note
|
Spaces are not allowed in hashnode source files, when you are publishing from a GitHub source on Hashnode, use underscores instead. |
You can optionaly pass a date to the script by passing it as argument:
./new 2021-11-28