add hugo v74
This commit is contained in:
parent
afa1cc44c4
commit
629ca7b30d
|
@ -59,6 +59,9 @@ install_hugo_v66(){
|
|||
install_hugo_v68_3(){
|
||||
install_hugo "https://github.com/gohugoio/hugo/releases/download/v0.68.3/hugo_extended_0.68.3_Linux-64bit.tar.gz"
|
||||
}
|
||||
install_hugo_v74(){
|
||||
install_hugo "https://github.com/gohugoio/hugo/releases/download/v0.74.0/hugo_extended_0.74.0_Linux-64bit.tar.gz"
|
||||
}
|
||||
install_hugo_v80(){
|
||||
install_hugo "https://github.com/gohugoio/hugo/releases/download/v0.80.0/hugo_extended_0.80.0_Linux-64bit.tar.gz"
|
||||
}
|
||||
|
|
|
@ -2,6 +2,9 @@ source libs/common.sh
|
|||
|
||||
before_build(){
|
||||
|
||||
install_hugo_v74
|
||||
install_postcss
|
||||
|
||||
# 在make prepare前需要对脚本就行fix改造
|
||||
# 无法获取随机值,任务会卡住知道超时
|
||||
sed -i 's#STASH_TOKEN=[^)]*)#STASH_TOKEN=AowSMQkCLCTVPCDXKu9Quvad6l21pA0x#g' load-docs.sh
|
||||
|
@ -11,8 +14,6 @@ before_build(){
|
|||
|
||||
npm i
|
||||
|
||||
install_hugo_v74
|
||||
install_postcss
|
||||
|
||||
# 添加网站访问统计
|
||||
echo '<script defer src="https://umami.cncfstack.com/script.js" data-website-id="d2323b72-657c-4da2-9371-67f8383fc2c8"></script>' >> layouts/partials/favicon.html
|
||||
|
|
Loading…
Reference in New Issue