Update to Hugo 0.20.7
This commit is contained in:
parent
df5505a66c
commit
ad2166bf51
@ -1,10 +1,14 @@
|
|||||||
image: alpine:3.5
|
image: alpine
|
||||||
|
|
||||||
|
variables:
|
||||||
|
HUGO_VERSION: '0.20.7'
|
||||||
|
HUGO_SHA: '04f2c7d2f6ea500b0ead4821f035f334b7ac370154509653391bfccec1c4d524'
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- apk update && apk add openssl
|
- apk update && apk add openssl
|
||||||
- wget https://github.com/spf13/hugo/releases/download/v0.18.1/hugo_0.18.1_Linux-64bit.tar.gz
|
- wget -O ${HUGO_VERSION}.tar.gz https://github.com/spf13/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_Linux-64bit.tar.gz
|
||||||
- echo "e8ba723c508e87912970f132534c64dc hugo_0.18.1_Linux-64bit.tar.gz" | md5sum -c
|
- echo "${HUGO_SHA} ${HUGO_VERSION}.tar.gz" | sha256sum -c
|
||||||
- tar xf hugo_0.18.1_Linux-64bit.tar.gz --strip-components=1 && mv hugo_0.18.1_linux_amd64 hugo && cp ./hugo /usr/bin
|
- tar xf ${HUGO_VERSION}.tar.gz && mv hugo* /usr/bin/hugo
|
||||||
- hugo version
|
- hugo version
|
||||||
|
|
||||||
test:
|
test:
|
||||||
|
34
README.md
34
README.md
@ -5,7 +5,7 @@
|
|||||||
Example [Hugo] website using GitLab Pages.
|
Example [Hugo] website using GitLab Pages.
|
||||||
|
|
||||||
Learn more about GitLab Pages at https://pages.gitlab.io and the official
|
Learn more about GitLab Pages at https://pages.gitlab.io and the official
|
||||||
documentation http://doc.gitlab.com/ee/pages/README.html.
|
documentation https://docs.gitlab.com/ce/user/project/pages/.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@ -24,35 +24,7 @@ documentation http://doc.gitlab.com/ee/pages/README.html.
|
|||||||
## GitLab CI
|
## GitLab CI
|
||||||
|
|
||||||
This project's static Pages are built by [GitLab CI][ci], following the steps
|
This project's static Pages are built by [GitLab CI][ci], following the steps
|
||||||
defined in [`.gitlab-ci.yml`](.gitlab-ci.yml):
|
defined in [`.gitlab-ci.yml`](.gitlab-ci.yml).
|
||||||
|
|
||||||
```
|
|
||||||
image: alpine:3.5
|
|
||||||
|
|
||||||
before_script:
|
|
||||||
- apk update && apk add openssl
|
|
||||||
- wget https://github.com/spf13/hugo/releases/download/v0.18.1/hugo_0.18.1_Linux-64bit.tar.gz
|
|
||||||
- echo "e8ba723c508e87912970f132534c64dc hugo_0.18.1_Linux-64bit.tar.gz" | md5sum -c
|
|
||||||
- tar xf hugo_0.18.1_Linux-64bit.tar.gz --strip-components=1 && mv hugo_0.18.1_linux_amd64 hugo && cp ./hugo /usr/bin
|
|
||||||
- hugo version
|
|
||||||
# Uncomment the next line if your theme is in a git submodule
|
|
||||||
#- git submodule update --init
|
|
||||||
|
|
||||||
test:
|
|
||||||
script:
|
|
||||||
- hugo
|
|
||||||
except:
|
|
||||||
- master
|
|
||||||
|
|
||||||
pages:
|
|
||||||
script:
|
|
||||||
- hugo
|
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- public
|
|
||||||
only:
|
|
||||||
- master
|
|
||||||
```
|
|
||||||
|
|
||||||
## Building locally
|
## Building locally
|
||||||
|
|
||||||
@ -71,6 +43,8 @@ Read more at Hugo's [documentation][].
|
|||||||
If you clone or download this project to your local computer and run `hugo server`,
|
If you clone or download this project to your local computer and run `hugo server`,
|
||||||
your site can be accessed under `localhost:1313/hugo/`.
|
your site can be accessed under `localhost:1313/hugo/`.
|
||||||
|
|
||||||
|
The theme used is adapted from http://themes.gohugo.io/beautifulhugo/.
|
||||||
|
|
||||||
## GitLab User or Group Pages
|
## GitLab User or Group Pages
|
||||||
|
|
||||||
To use this project as your user/group website, you will need one additional
|
To use this project as your user/group website, you will need one additional
|
||||||
|
Loading…
x
Reference in New Issue
Block a user