nindwen.blue

my home page
git clone https://git.nindwen.blue/nindwen.blue.git
Log | Files | Refs | README

commit 489f5d9f490a62e9a8218deb3f53ab110dc4bd76
parent 5bd4ff77f2f49f73fcc4ce506a520e2c9e7a935f
Author: Nindwen <nindweniel@gmail.com>
Date:   Sat, 20 Feb 2016 01:36:11 +0200

cont

Diffstat:
foot.html | 3++-
head.html | 1+
sass/main.scss | 3+++
slurp.sh | 14++++++++++++--
4 files changed, 18 insertions(+), 3 deletions(-)

diff --git a/foot.html b/foot.html @@ -1,3 +1,4 @@ - <nav></nav> + </div> + <nav>moi</nav> </body> </html> diff --git a/head.html b/head.html @@ -9,3 +9,4 @@ <meta name="description" content="Contact, portfolio, blog"> </head> <body> + <div id="content"> diff --git a/sass/main.scss b/sass/main.scss @@ -1,2 +1,5 @@ body { + font-family: sans; + background: #444444; + color: #eeeeee; } diff --git a/slurp.sh b/slurp.sh @@ -1,23 +1,33 @@ #!/bin/bash +style() { + sass --style compressed --update sass:output/css +} + watch() { sass --style compressed --watch sass/:output/css } page() { - markdown $1.md | cat head.html - foot.html | tidy -i -utf8 > output/$1.html + markdown $1.md | cat head.html - foot.html | tidy -iq -utf8 > output/$1.html } help() { echo "apuva!" } +build() { + style + page index +} + push() { + build rsync -a output/ usvs:www/nindwen.blue } if [ -z "$1" ]; then - echo usage: $0 [sass, watch] + push exit fi