diff --git a/.gitignore b/.gitignore index 45c1505..102e97d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ _site .sass-cache .jekyll-metadata +_tmp/ \ No newline at end of file diff --git a/_layouts/home.html b/_layouts/home.html index 4da65b5..112d8e6 100644 --- a/_layouts/home.html +++ b/_layouts/home.html @@ -18,7 +18,7 @@ layout: default
- + Download My CV diff --git a/_layouts/page.html b/_layouts/page.html index d3044ed..94477f8 100644 --- a/_layouts/page.html +++ b/_layouts/page.html @@ -15,8 +15,7 @@ theme: dark {% for tag in page.categories %}
  • - - {{ tag | capitalize }} + {{ tag | capitalize }}
  • {% endfor %} diff --git a/_posts/2018-11-02-I-am-moving-to-gitlab.md b/_posts/2018-11-02-I-am-moving-to-gitlab.md index d339954..95cf14d 100644 --- a/_posts/2018-11-02-I-am-moving-to-gitlab.md +++ b/_posts/2018-11-02-I-am-moving-to-gitlab.md @@ -6,6 +6,6 @@ theme: dark categories: Announcements tags: gitlab --- -As soon as I hear about Micro$oft acquiring Github I decided to migrate to Gitlab. My guts tells me to do not trust a corporation behind the [Halloween document](https://en.wikipedia.org/wiki/Halloween_documents). Micro$oft might be a different company these days but their history is enough to not to trust them. Even if they are different and have no bad intentions, but still acquiring company such as Github means that the very first thing they will do is to integrate Github with their own services and that's enough for me to move. +As soon as I hear about Micro$oft acquiring Github I decided to migrate to Gitlab. My guts tells me to do not trust a corporation behind the [Halloween document](https://en.wikipedia.org/wiki/Halloween_documents). Micro$oft might be a different company these days but their history is enough to not to trust them. Even if they are different and have no bad intentions, but still acquiring company such as Github means that the very first thing they will do is to integrate Github with their own services and that is enough for me to move. In the other hand Gitlab is a free software with tons of feature like built-in CI and docker registry and other cool stuff. I totally recommend Gitlab as a better alternative to Github. diff --git a/_scripts/deploy b/_scripts/deploy new file mode 100755 index 0000000..9d909aa --- /dev/null +++ b/_scripts/deploy @@ -0,0 +1,14 @@ +#! /bin/bash + +echo "Cleaning up..." +rm ./_tmp -rf +mkdir -p ./_tmp/ +echo "Compiling..." +bundle exec jekyll build +echo "Creating the package..." +tar zcf _tmp/package.tar.gz _site/ +echo "Uploading the package..." +scp _tmp/package.tar.gz lxsameer@core.lxsameer.com:/home/lxsameer/tmp/package.tar.gz +echo "Running remote commands..." +ssh lxsameer@core.lxsameer.com 'bash -s' < ./_scripts/remote.sh +echo "Done!" diff --git a/_scripts/remote.sh b/_scripts/remote.sh new file mode 100644 index 0000000..d688720 --- /dev/null +++ b/_scripts/remote.sh @@ -0,0 +1,14 @@ +#! /bin/bash + +echo "[REMOTE]: Cleaning up..." +rm -rf ~/resources +echo "[REMOTE]: Extracting the package..." +tar zxf ~/tmp/package.tar.gz +echo "[REMOTE]: Installing the content..." +mkdir -p ~/lxsameer.com +cp -rv ~/_site/* ~/lxsameer.com/home/ +chmod 755 ~/lxsameer.com/home/ -R +echo "[REMOTE]: Cleaning up..." +rm -rf ~/_site ~/tmp/ +mkdir -p ~/tmp +echo "[REMOTE]: Done" diff --git a/assets/styles/web.sass b/assets/styles/web.sass index 8ccad72..a52a0ec 100644 --- a/assets/styles/web.sass +++ b/assets/styles/web.sass @@ -62,7 +62,7 @@ body.dark &:hover color: darken($white, 30%) - text-decoration: underline + content.post p diff --git a/blog.md b/blog.md index f7cc5eb..6ea8f5f 100644 --- a/blog.md +++ b/blog.md @@ -2,12 +2,13 @@ layout: post theme: dark --- + {% for post in site.posts %}