about summary refs log tree commit diff stats
path: root/compile.sh
diff options
context:
space:
mode:
authorCase Duckworth2015-03-03 00:36:33 -0700
committerCase Duckworth2015-03-03 00:36:33 -0700
commitc9b13f232d73699cba86ce1ade5fdf5a15b67e85 (patch)
tree704ea3fba0ab3dcec655cbe7111bbbc4231b4104 /compile.sh
parentAttempt 2 to get css to work with GH pages (diff)
downloadautocento-c9b13f232d73699cba86ce1ade5fdf5a15b67e85.tar.gz
autocento-c9b13f232d73699cba86ce1ade5fdf5a15b67e85.zip
Add externalizing links process to compile.sh
Diffstat (limited to 'compile.sh')
-rw-r--r--compile.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/compile.sh b/compile.sh index 7e48f6e..da7cc4b 100644 --- a/compile.sh +++ b/compile.sh
@@ -20,6 +20,11 @@ mv src/*.html ./
20echo "Finished compiling $num files." 20echo "Finished compiling $num files."
21############################################### 21###############################################
22echo 22echo
23echo "Adding class=\"external\" to external links ..."
24sed -i 's,<a href="\(http://.*\)">,<a href="\1" class="external">,g' *.html
25echo "Finished."
26###############################################
27echo
23echo "Updating js/lozenge.js with file list ..." 28echo "Updating js/lozenge.js with file list ..."
24 29
25lozengeList=( $(ls *.html | grep -v '\(_template\|loremipsum\|ipsumlorem\)') ) 30lozengeList=( $(ls *.html | grep -v '\(_template\|loremipsum\|ipsumlorem\)') )