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,21 +1,29 @@
dist: bionic
language: generic
# installing Hugo from the snap store'
# https://snapcraft.io/hugo
# Assuming that the GitHub API is at version 4.0
# 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:
- sed -i 's/git@github.com:/git:\/\/github.com\//' .gitmodules
- git submodule update --init --recursive
- sudo apt-get update
- sudo apt-get install ruby
- 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 dpkg -i hugo*.deb
- sudo apt-get install python3
- sudo apt-get install ruby wget
- 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
script:
- asciidoctor --version
- hugo --minify
- hugo
deploy:
local_dir: "public/"
local_dir: "./public/"
provider: pages
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
on:
branch: master

View File

@ -4,7 +4,6 @@ title = "A Hack's Code"
description = "A blog of a hack."
summaryLength = 0
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)."
googleAnalytics = "UA-126718538-1"
theme = "terminal-plus-minus"
@ -70,3 +69,9 @@ canonifyURLs = true
syntaxHighlighter = "prismjs"
enableBreadcrumbs = true
contentIsStyled = true
[privacy]
[privacy.googleAnalytics]
anonymizeIP = true
respectDoNotTrack = true
useSessionStorage = true