add hugo v122

This commit is contained in:
weyu 2025-03-29 14:05:03 +08:00
parent dcb318e9d9
commit 8a77700d23
2 changed files with 8 additions and 5 deletions

View File

@ -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"

View File

@ -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
# 添加网站访问统计