mirror of
https://github.com/foo-dogsquared/website.git
synced 2025-01-31 07:58:02 +00:00
Update config
This commit is contained in:
parent
1b64a242ab
commit
5f394166fd
24
.travis.yml
24
.travis.yml
@ -1,21 +1,29 @@
|
|||||||
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
|
||||||
|
@ -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"
|
||||||
@ -70,3 +69,9 @@ canonifyURLs = true
|
|||||||
syntaxHighlighter = "prismjs"
|
syntaxHighlighter = "prismjs"
|
||||||
enableBreadcrumbs = true
|
enableBreadcrumbs = true
|
||||||
contentIsStyled = true
|
contentIsStyled = true
|
||||||
|
|
||||||
|
[privacy]
|
||||||
|
[privacy.googleAnalytics]
|
||||||
|
anonymizeIP = true
|
||||||
|
respectDoNotTrack = true
|
||||||
|
useSessionStorage = true
|
Loading…
Reference in New Issue
Block a user