From 8a77700d23fcd4d1ee553a53d5d7ef42b53e97c7 Mon Sep 17 00:00:00 2001 From: weyu <985695055@qq.com> Date: Sat, 29 Mar 2025 14:05:03 +0800 Subject: [PATCH] add hugo v122 --- libs/common.sh | 7 +++++++ webs/fluxcd/toto.sh | 6 +----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/libs/common.sh b/libs/common.sh index b0ed6b2..547ce2d 100755 --- a/libs/common.sh +++ b/libs/common.sh @@ -17,6 +17,13 @@ install_hugo_v120(){ sudo chmod +x /usr/bin/hugo } +install_hugo_v122(){ + echo "=============================================> 安装 Hugo V0.122.0" + wget -q https://github.com/gohugoio/hugo/releases/download/v0.122.0/hugo_extended_0.122.0_linux-amd64.tar.gz + tar xf hugo_extended_0.122.0_linux-amd64.tar.gz + sudo cp ./hugo /usr/bin/ + sudo chmod +x /usr/bin/hugo +} install_postcss(){ echo "=============================================> 安装 postCSS" diff --git a/webs/fluxcd/toto.sh b/webs/fluxcd/toto.sh index 387615d..726e734 100644 --- a/webs/fluxcd/toto.sh +++ b/webs/fluxcd/toto.sh @@ -4,11 +4,7 @@ initdir=$2 source ${initdir}/libs/common.sh before_flux_website(){ - echo "install hugo" - install_hugo - - # 安装 postCSS - echo "install postCSS" + install_hugo_v122 install_postcss # 添加网站访问统计