cabin

Source code for personal website
git clone git://git.dimitrijedobrota.com/cabin.git
Log | Files | Refs

commit 3e2ae0e12df23705914448ba9336fd69bb81fe6c
parent 6afda30cfc5757c5a32851d4f079bed9dc1cf08a
Author: Dimitrije Dobrota <mail@dimitrijedobrota.com>
Date:   Thu, 27 Jun 2024 03:02:05 +0200

Improve cabin-deploy.sh and few nitpick

Diffstat:
Mblog/TEST.md | 2+-
Mcabin-deploy.sh | 17+++++++++++++----
Mcss/index.css | 4++++
Rimg/favicon.ico -> favicon.ico | 0
Mindex.md | 3++-
5 files changed, 20 insertions(+), 6 deletions(-)

diff --git a/blog/TEST.md b/blog/TEST.md @@ -1,5 +1,5 @@ @title: Test -@date: 2021-08-17 +@date: 2021-08-16 @language: en @categories: general diff --git a/cabin-deploy.sh b/cabin-deploy.sh @@ -1,3 +1,5 @@ +#!/bin/bash + # cabin-deploy.sh: generate blog files and deploy to server if [ "$#" -ne 2 ]; then @@ -9,11 +11,18 @@ fi src="$1" dst="$2" -pushd "$src" +pushd "$src" || exit find . -not -iname "*.md" -a -not -path "*.git*" -a -not -path "*.git*"| cpio -pvd "$dst" -popd +popd || exit + +opt=() +opt+=(--author "Dimitrije Dobrota") +opt+=(--base "https://dimitrijedobrota.com") +opt+=(--email "mail@dimitrijedobrota.com") +opt+=(--desc "Contents of Dimitrije Dobrota's blog") +opt+=(--summary "Click on the article link to read...") -stamd --output "$dst/blog" --index $src/blog/*.md +stamd "${opt[@]}" --output "$dst/blog" --index $src/blog/*.md stamd --output "$dst" $src/*.md -rsync -a $dst server:/var/www/cabin +rsync -a $dst/* server:/var/www/cabin diff --git a/css/index.css b/css/index.css @@ -64,6 +64,10 @@ footer nav { /* padding-right: 40px; */ } +.back { + cursor:pointer; +} + main { min-height: 100% ; diff --git a/img/favicon.ico b/favicon.ico Binary files differ. diff --git a/index.md b/index.md @@ -1,8 +1,9 @@ @filename: index.html +@title: Dimitrije Dobrota's cabin @nonav -# Dimitrije Dobrota +# Dimitrije Dobrota's cabin ## Junior of Computer Engineering and Information Theory interested in Linux, C++ and CS