How to use plug-ins to create new posts
文章目录
If you are using the Visual Studio Code editor , you will find a nice Extension named jekyll-post , That extension makes it easier to create new blog posts for Jekyll-based websites. and we can modify it to make it work for Hugo too.
The first step is finding the installation directory
Win
%USERPROFILE%\.vscode\extensions\rohgarg.jekyll-post-0.0.1\out\utils.js
Mac
~/.vscode/extensions/rohgarg.jekyll-post-0.0.1/out/utils.js
and then you can modify the Jekyll-template into a hugo-template
|
|
like this
|
|
It will help me automatically add behavior to each template element.
For example, I don’t need to “fill in the post time” or “sets up the file name” anymore.