- lgc2018-09-26金牌会员116275
- 本帖最后由 lgc 于 2018-9-26 18:17 编辑 *
演示地址
https://tnwhitwell.github.io/hugo-startpage-theme/66441
响应式的
66442
项目地址
https://themes.gohugo.io/hugo-startpage-theme/
https://github.com/tnwhitwell/hugo-startpage-theme使用方法
#下载hugo主程序,startpage主题- cd /usr/local/bin
- new_ver=$(wget --no-check-certificate -qO- https://api.github.com/repos/gohugoio/hugo/releases | grep -o '"tag_name": ".*"' |head -n 1| sed 's/"//g;s/v//g' | sed 's/tag_name: //g')
- wget https://github.com/gohugoio/hugo/releases/download/v${new_ver}/hugo_${new_ver}_Linux-64bit.tar.gz -O hugo.tgz&& tar xzf hugo.tgz && chmod +x hugo
- git clone https://github.com/tnwhitwell/hugo-startpage-theme.git "/hugo-startpage/themes/startpage"
- mv /hugo-startpage/themes/startpage/exampleSite/* /hugo-startpage/复制代码
#编辑配置
网址配置文件 /hugo-startpage/data/links.yml
#启动hugo- cd /hugo-startpage && hugo server -D -d /hugo-startpage/public/ --bind "0.0.0.0" --port=80 --baseURL="http://服务器域名或者ip"复制代码
#其他
/hugo-startpage/public/ 文件夹也可以直接用于部署到像nginx、apache、caddy这样的Web Server下面