Using frequently-used Hugo commands by shell.
Add a submodule for your Hugo blog project.
git submodule add https://github.com/hugo-fixit/hugo-shell.git your_hugo_blog/.shell
Run hugo_main.sh
to choice frequently-used Hugo commands:
cd .shell && sh hugo_main.sh
--------------Hugo Admin--------------
Please enter the serial number to work
--------------------------------------
1. post
2. server
3. server:production
4. build
5. submodule-sync
6. push
--------------------------------------
Press Ctrl+C to stop