Remove claw push and payloads directory with related docs
This commit is contained in:
@@ -1,5 +1,20 @@
|
||||
#!/usr/bin/env bash
|
||||
# sync-blog: pull + rebuild
|
||||
# ============================================================
|
||||
# sync-blog@tx-ubuntu-hugo.sh
|
||||
# 拉取 Hugo 博客最新代码并重新构建静态页面
|
||||
#
|
||||
# 用法: claw run tx-ubuntu-hugo sync-blog@tx-ubuntu-hugo.sh
|
||||
# 适用: Ubuntu 24.04, Hugo 0.161+
|
||||
#
|
||||
# 前置条件:
|
||||
# - ~/hugo-blog 已 git clone 且 remote 指向 github.com:fukunee/Hugo
|
||||
# - hugo 已安装
|
||||
# - nginx 指向 ~/hugo-blog/public
|
||||
#
|
||||
# 流程:
|
||||
# 1. git pull — 拉取最新文章和配置
|
||||
# 2. hugo build — 重建静态页面到 public/
|
||||
# ============================================================
|
||||
set -e
|
||||
|
||||
cd ~/hugo-blog
|
||||
|
||||
Reference in New Issue
Block a user