diff options
author | Case Duckworth | 2015-03-03 00:36:33 -0700 |
---|---|---|
committer | Case Duckworth | 2015-03-03 00:36:33 -0700 |
commit | c9b13f232d73699cba86ce1ade5fdf5a15b67e85 (patch) | |
tree | 704ea3fba0ab3dcec655cbe7111bbbc4231b4104 /compile.sh | |
parent | Attempt 2 to get css to work with GH pages (diff) | |
download | autocento-c9b13f232d73699cba86ce1ade5fdf5a15b67e85.tar.gz autocento-c9b13f232d73699cba86ce1ade5fdf5a15b67e85.zip |
Add externalizing links process to compile.sh
Diffstat (limited to 'compile.sh')
-rw-r--r-- | compile.sh | 5 |
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 ./ | |||
20 | echo "Finished compiling $num files." | 20 | echo "Finished compiling $num files." |
21 | ############################################### | 21 | ############################################### |
22 | echo | 22 | echo |
23 | echo "Adding class=\"external\" to external links ..." | ||
24 | sed -i 's,<a href="\(http://.*\)">,<a href="\1" class="external">,g' *.html | ||
25 | echo "Finished." | ||
26 | ############################################### | ||
27 | echo | ||
23 | echo "Updating js/lozenge.js with file list ..." | 28 | echo "Updating js/lozenge.js with file list ..." |
24 | 29 | ||
25 | lozengeList=( $(ls *.html | grep -v '\(_template\|loremipsum\|ipsumlorem\)') ) | 30 | lozengeList=( $(ls *.html | grep -v '\(_template\|loremipsum\|ipsumlorem\)') ) |