hugo default output
This commit is contained in:
parent
8a77700d23
commit
88a2714bbe
15
README.md
15
README.md
|
@ -1,2 +1,17 @@
|
||||||
# websitetoto
|
# websitetoto
|
||||||
|
|
||||||
|
# 常见问题
|
||||||
|
|
||||||
|
## Hugo 版本不匹配
|
||||||
|
|
||||||
|
**现象:**
|
||||||
|
|
||||||
|
- 缺少以来模板。如
|
||||||
|
|
||||||
|
```
|
||||||
|
ERROR render of "section" failed: "/home/runner/.cache/hugo_cache/modules/filecache/modules/pkg/mod/github.com/google/docsy@v0.6.0/layouts/_default/baseof.html:4:7": execute of template failed: template: adopters/list.html:4:7: executing "adopters/list.html" at <partial "head.html" .>: error calling partial: execute of template failed: html/template:partials/head.html:52:16: no such template "_internal/google_analytics_async.html"
|
||||||
|
```
|
||||||
|
|
||||||
|
**解决方案:**
|
||||||
|
|
||||||
|
一般情况下可以通过 `netlify.toml` 或 `Makefile` 文件查找 hugo 版本信息。
|
|
@ -94,5 +94,5 @@ find_and_sed_v2(){
|
||||||
done
|
done
|
||||||
|
|
||||||
check_cdn_change
|
check_cdn_change
|
||||||
check_not_change
|
#check_not_change
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,7 +35,8 @@ after_flux_website(){
|
||||||
}
|
}
|
||||||
|
|
||||||
save_return(){
|
save_return(){
|
||||||
echo "${workdir}/output&oss://cncfstack-flux" > ${workdir}/ret-data
|
ls -lha
|
||||||
|
echo "${workdir}/app&oss://cncfstack-flux" > ${workdir}/ret-data
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -44,6 +45,6 @@ if cat .git/config |grep '/fluxcd/website.git' ;then
|
||||||
echo "=============================================> 匹配到 flux"
|
echo "=============================================> 匹配到 flux"
|
||||||
before_flux_website
|
before_flux_website
|
||||||
after_flux_website
|
after_flux_website
|
||||||
find_and_sed_v2 "output"
|
find_and_sed_v2 "app"
|
||||||
save_return
|
save_return
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue