Using frequently-used Hugo commands by shell.

来源:hugo-fixit/hugo-shell

目录
警告
本文最后更新于 2025-09-12,文中内容可能已过时。

Hugo Shell

Using frequently-used Hugo commands by shell.

Download

Add a submodule for your Hugo blog project.

1
git submodule add https://github.com/hugo-fixit/hugo-shell.git your_hugo_blog/.shell

Usage

Run hugo_main.sh to choice frequently-used Hugo commands:

1
cd .shell && sh hugo_main.sh
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
--------------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
Buy me a coffee~
hugo-fixit 支付宝支付宝
hugo-fixit 微信微信

发现新版本

当前站点有新版本可用。