Several minor bugs have been fixed

Bu işleme şunda yer alıyor:
Sameer Rahmani 2019-02-26 21:14:43 +00:00
ebeveyn 0e6aef727a
işleme e6ca427f46
8 değiştirilmiş dosya ile 35 ekleme ve 6 silme

1
.gitignore sağlanmış
Dosyayı Görüntüle

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

Dosyayı Görüntüle

@ -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>

Dosyayı Görüntüle

@ -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 %}

Dosyayı Görüntüle

@ -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 Çalıştırılabilir dosya
Dosyayı Görüntüle

@ -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 Normal dosya
Dosyayı Görüntüle

@ -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"

Dosyayı Görüntüle

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

Dosyayı Görüntüle

@ -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>