Browse Source

Several minor bugs have been fixed

org
Sameer Rahmani 3 years ago
parent
commit
e6ca427f46
  1. 1
      .gitignore
  2. 2
      _layouts/home.html
  3. 3
      _layouts/page.html
  4. 2
      _posts/2018-11-02-I-am-moving-to-gitlab.md
  5. 14
      _scripts/deploy
  6. 14
      _scripts/remote.sh
  7. 2
      assets/styles/web.sass
  8. 3
      blog.md

1
.gitignore

@ -1,3 +1,4 @@
_site
.sass-cache
.jekyll-metadata
_tmp/

2
_layouts/home.html

@ -18,7 +18,7 @@ layout: default
<div class="columns is-centered is-flex">
<div class="column is-one-quarter centered">
<a class="button is-primary is-block cv-button" href="/">
<a class="button is-primary is-block cv-button" href="https://dl.lxsameer.com/CV/SameerRahmani.pdf">
<b>
Download My CV
</b>

3
_layouts/page.html

@ -15,8 +15,7 @@ theme: dark
{% for tag in page.categories %}
<a href="/categories/{{tag}}">
<li class="category">
{{ tag | capitalize }}
<i class="fas fa-link"></i> {{ tag | capitalize }}
</li>
</a>
{% endfor %}

2
_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.

14
_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!"

14
_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"

2
assets/styles/web.sass

@ -62,7 +62,7 @@ body.dark
&:hover
color: darken($white, 30%)
text-decoration: underline
content.post
p

3
blog.md

@ -2,12 +2,13 @@
layout: post
theme: dark
---
{% for post in site.posts %}
<div class="columns">
<div class="column">
<h2 class="is-size-3">
<a class="post-title-link" href="{{ post.url }}">
{{ post.title }}
<i class="fas fa-link"></i> {{ post.title }}
</a>
</h2>
</div>

Loading…
Cancel
Save