@@ -32,12 +39,13 @@ cat << EOF
- +
diff --git a/site/entries/welcome.html b/site/entries/welcome.html index 5d34602..38e7351 100755 --- a/site/entries/welcome.html +++ b/site/entries/welcome.html @@ -2,7 +2,7 @@ # welcome -welcome. i decided to turn this webpage into blog-style site... i havent got a topic or anything, so expect either: quality tutorials and very interesting techy things; or just random shitposts or rambles about things. +welcome! i decided to turn this webpage into blog-style site... i havent got a topic or anything, so expect either: quality tutorials and very interesting techy things; or just random shitposts or rambles about things. originally i was going to make this blog on [b.davidovski.xyz](https://b.davidovski.xyz) using [nanoblogger](http://nanoblogger.sourceforge.net/) (you might be able to still see the start of that) but nb itself seemed quite dead, and i couldn't really be asked to customise it all myself. So i made my own script to generate this static site: [kblg](https://github.com/davidovski/kblg/). Right now its probably just the bare minimum needed for this, but I am planning to add more things to it as I go along (including rss, if anyone would be interested?) diff --git a/site/index.html b/site/index.html index 39c4540..0f9c75d 100755 --- a/site/index.html +++ b/site/index.html @@ -1,4 +1,4 @@ -#!./page.sh +#!./page.sh -s entries="$(for f in entries/*.html; do echo $(git log --pretty=format:'%ct' --follow $f | tail -n 1) $f; done | sort -nr | cut -f2- -d' ')" diff --git a/site/page.sh b/site/page.sh index 69db1fb..d3bf1a7 100755 --- a/site/page.sh +++ b/site/page.sh @@ -1,5 +1,12 @@ #!/bin/sh -# set a variable to avoid this template being repeated indefinitely + +# if this is called with -s then make it the small version of the page + +type="regular-window" +[ "$1" = "-s" ] &&{ + type="small-window" + shift +} cat << EOF @@ -11,7 +18,7 @@ cat << EOF