Use an alias in your PowerShell profile to create a new Hugo post
Use an alias in your PowerShell profile to create a new Hugo post
The command to create a new Hugo post is:
|
|
Use an alias
Using Powershell, you can use an alias to make this easier, here is the block of code we are going to use:
|
|
This can be reloaded each time Powershell starts by editing your profile:
|
|
Test it works
Then, to create a new post using the new, friendly nhp
alias:
|
|
This post is licensed under CC BY 4.0 by the author.