Second followup on 'How its done'
Introduction
Some time back i asked Cogitri to start writing about his exploits with his projects like gxi and tmplgen, he got around to it and started by looking at my setup.
Needless to say we exchanged quite a few things and it got me into finishing the restructuring of my blog. So let's start with the changes i have done before.
This can be considered the third follow up with the second one being weighting the pages
Changes
Removing all JS
It was annoying to deal with it, so i decided to just strip it out, the only things using it with any value was the slideout function so i removed the slides on the side as well.
Currently mobile users can't access categories, tags or the about page easily and fixing this is a super low priority thing so don't expect much.
Travis CI
We now use the native Travis CI method for deploying pages, it hasn't changed the results (as expected) but caused a few changes.
- No longer need to deal with ghp-import
- No longer need to manually push, now Travis CI is credited in the commit
This is the diff of the changes done.
diff --git a/.travis.yml b/.travis.yml index d70e3c7..a832ba5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,19 +2,20 @@ branches: only: - devel -before_script: +deploy: + provider: pages + skip-cleanup: true + github-token: $GH_TOKEN + verbose: true + target_branch: master + local-dir: public + on: + branch: devel + +install: # Download and unzip the zola executable # Replace the version numbers in the URL by the version you want to use - curl -s -L https://github.com/getzola/zola/releases/download/v0.5.1/zola-v0.5.1-x86_64-unknown-linux-gnu.tar.gz | sudo tar xvzf - -C /usr/local/bin script: | zola build - -# If you are using a different folder than `public` for the output directory, you will -# need to change the `zola` command and the `ghp-import` path -after_success: | - [ $TRAVIS_BRANCH = devel ] && - zola build && - sudo pip install ghp-import && - ghp-import -n -b master public && - git push -fq https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git master
And the final file.
branches: only: - devel deploy: provider: pages skip-cleanup: true github-token: $GH_TOKEN verbose: true target_branch: master local-dir: public on: branch: devel install: # Download and unzip the zola executable # Replace the version numbers in the URL by the version you want to use - curl -s -L https://github.com/getzola/zola/releases/download/v0.5.1/zola-v0.5.1-x86_64-unknown-linux-gnu.tar.gz | sudo tar xvzf - -C /usr/local/bin script: | zola build