Moved to Makefile based build system
Got rid of janky build.sh script. Now uses a bunch of janky scripts and a make file - because that is bound to be easier to maintain.
This commit is contained in:
parent
39791363fa
commit
56f95cb9aa
13 changed files with 289 additions and 234 deletions
35
bin/gmiIndex
Executable file
35
bin/gmiIndex
Executable file
|
@ -0,0 +1,35 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
case "$1" in
|
||||
tag)
|
||||
title="Archive: $(echo "$ALLTAGS" | tr ' _' '\n ' | grep -i "$(echo "$2" | tr '_' ' ')")"
|
||||
template="$(echo "" | pandoc --template=templates/blog.html \
|
||||
-f markdown -t html5 -M archive -M title:"$title" 2> /dev/null )"
|
||||
shift
|
||||
;;
|
||||
index)
|
||||
echo "# Jonathan Hodgson"
|
||||
echo ""
|
||||
echo "## Blogs"
|
||||
echo ""
|
||||
|
||||
;;
|
||||
esac
|
||||
|
||||
shift
|
||||
|
||||
|
||||
|
||||
for i in "$@"; do
|
||||
case "$i" in
|
||||
tmp/intros/*)
|
||||
cat "$i"
|
||||
echo ""
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
|
||||
echo "## Other Links"
|
||||
echo "=> /help-me-out/ Help Me Out"
|
||||
echo "=> /other-stuff-you-might-like/ Other Stuff You Might Like"
|
Loading…
Add table
Add a link
Reference in a new issue