Update config

This commit is contained in:
foo-dogsquared 2019-09-11 23:47:32 +08:00
parent 1b64a242ab
commit 5f394166fd
2 changed files with 24 additions and 11 deletions

View File

@ -1,22 +1,30 @@
dist: bionic dist: bionic
language: generic
# installing Hugo from the snap store' # Assuming that the GitHub API is at version 4.0
# https://snapcraft.io/hugo # disable the default submodule logic
git:
submodules: false
# use sed to replace the SSH URL with the public URL, then init and update submodules
before_install: before_install:
- sed -i 's/git@github.com:/git:\/\/github.com\//' .gitmodules
- git submodule update --init --recursive
- sudo apt-get update - sudo apt-get update
- sudo apt-get install ruby - sudo apt-get install python3
- curl https://api.github.com/repos/gohugoio/hugo/releases/latest | grep "hugo_extended.*deb" | grep "browser_download_url" | cut --delimiter=":" --delimiter="\"" --fields=4 | wget -qi - - sudo apt-get install ruby wget
- sudo dpkg -i hugo*.deb - curl https://api.github.com/repos/gohugoio/hugo/releases/latest | grep "hugo_extended.*deb" | grep "browser_download_url" | cut --delimiter=":" --delimiter="\"" --fields=4 | sudo wget -i -
- sudo dpkg -i *.deb
- sudo gem install asciidoctor - sudo gem install asciidoctor
script: script:
- asciidoctor --version - asciidoctor --version
- hugo --minify - hugo
deploy: deploy:
local_dir: "public/" local_dir: "./public/"
provider: pages provider: pages
skip_cleanup: true skip_cleanup: true
github_token: $GITHUB_TOKEN github_token: $GITHUB_TOKEN # Set in the settings page of your repository, as a secure variable
target_branch: gh-pages target_branch: gh-pages
on: on:
branch: master branch: master

View File

@ -4,7 +4,6 @@ title = "A Hack's Code"
description = "A blog of a hack." description = "A blog of a hack."
summaryLength = 0 summaryLength = 0
paginate = 5 paginate = 5
disqusShortname = "foodogsquared"
copyright = "Unless explicitly stated, all content released here are licensed under [CC BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0)." copyright = "Unless explicitly stated, all content released here are licensed under [CC BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0)."
googleAnalytics = "UA-126718538-1" googleAnalytics = "UA-126718538-1"
theme = "terminal-plus-minus" theme = "terminal-plus-minus"
@ -69,4 +68,10 @@ canonifyURLs = true
enableSyntaxHighlighting = true enableSyntaxHighlighting = true
syntaxHighlighter = "prismjs" syntaxHighlighter = "prismjs"
enableBreadcrumbs = true enableBreadcrumbs = true
contentIsStyled = true contentIsStyled = true
[privacy]
[privacy.googleAnalytics]
anonymizeIP = true
respectDoNotTrack = true
useSessionStorage = true