add local view

このコミットが含まれているのは:
たかし 2023-09-09 00:39:26 +00:00
コミット 653d0f5b6f
2個のファイルの変更19行の追加1行の削除

14
make.sh
ファイルの表示

@ -1,4 +1,16 @@
#!/bin/sh
# usage:
# - production:
# ./make.sh
# - for local reading:
# ./make.sh -local
footer=footer.html
if [ $1 and $1 = '-local' ]; then
footer='footer-local.html'
fi
mkdir -p www
rm -rf www/*
cp -pv src/style.css www
@ -14,7 +26,7 @@ for name in *.html; do
# 目次以外にはフッターあり
if [ $name != index.html ]; then
cat include/footer.html >> $out
cat include/$footer >> $out
fi
echo "src/$name -> www/$name"

6
src/include/footer-local.html ノーマルファイル
ファイルの表示

@ -0,0 +1,6 @@
<h2>附加情報</h2>
<ul>
<li><a href="./index.html">「美々蝶々」目次</a></li>
</ul>