diff --git a/make.sh b/make.sh index 289d864..838fdfe 100755 --- a/make.sh +++ b/make.sh @@ -6,11 +6,6 @@ # - for local reading: # ./make.sh -local -footer=footer.html -if [ $1 -a $1 = '-local' ]; then - footer='footer-local.html' -fi - mkdir -p www rm -rf www/* cp -pv src/style.css www @@ -26,7 +21,11 @@ for name in *.html; do # 目次以外にはフッターあり if [ $name != index.html ]; then - cat include/$footer >> $out + if [ $1 -a $1 = '-local' ]; then + sed -e's/href="\.\/"/href=".\/index.html"/' include/footer.html >> $out + else + cat include/footer.html >> $out + fi fi echo "src/$name -> www/$name" diff --git a/src/include/footer-local.html b/src/include/footer-local.html deleted file mode 100644 index 0467e6f..0000000 --- a/src/include/footer-local.html +++ /dev/null @@ -1,6 +0,0 @@ - -

附加情報

- -