add hugo v122
This commit is contained in:
parent
dcb318e9d9
commit
8a77700d23
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
||||
# 添加网站访问统计
|
||||
|
|
Loading…
Reference in New Issue