diff --git a/.travis.yml b/.travis.yml index 62985bd..bc0619d 100644 --- a/.travis.yml +++ b/.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 - \ No newline at end of file + diff --git a/config.toml b/config.toml index 0f47ff5..ed98908 100644 --- a/config.toml +++ b/config.toml @@ -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 \ No newline at end of file + contentIsStyled = true + +[privacy] + [privacy.googleAnalytics] + anonymizeIP = true + respectDoNotTrack = true + useSessionStorage = true \ No newline at end of file