mirror of
https://github.com/foo-dogsquared/website.git
synced 2025-01-31 01:57:54 +00:00
Update config
This commit is contained in:
parent
1b64a242ab
commit
5f394166fd
26
.travis.yml
26
.travis.yml
@ -1,22 +1,30 @@
|
||||
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
|
||||
|
||||
|
||||
|
@ -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"
|
||||
@ -69,4 +68,10 @@ canonifyURLs = true
|
||||
enableSyntaxHighlighting = true
|
||||
syntaxHighlighter = "prismjs"
|
||||
enableBreadcrumbs = true
|
||||
contentIsStyled = true
|
||||
contentIsStyled = true
|
||||
|
||||
[privacy]
|
||||
[privacy.googleAnalytics]
|
||||
anonymizeIP = true
|
||||
respectDoNotTrack = true
|
||||
useSessionStorage = true
|
Loading…
Reference in New Issue
Block a user