From cae2c348ddf836344648aa1f6769f025df2b6382 Mon Sep 17 00:00:00 2001 From: Bernhard Urban Date: Wed, 11 Jul 2012 23:31:25 +0200 Subject: [PATCH] add disqus support --- jpg2html.sh | 5 +++-- tmpl_f.html | 15 +++++++++++++++ 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/jpg2html.sh b/jpg2html.sh index dc85e1b..e826dfc 100755 --- a/jpg2html.sh +++ b/jpg2html.sh @@ -35,11 +35,12 @@ for i in `seq 1 $len `; do cat $bn_this.desc >> tmp fi - cat tmpl_h.html tmp tmpl_f.html > $bn_this.html + rg="s/13371337/`basename $bn_this`/g" + (cat tmpl_h.html tmp; sed -e $rg tmpl_f.html) > $bn_this.html rm tmp done printf "

download: hi-res, lo-res\n" >> all.tmp -cat tmpl_h.html all.tmp tmpl_f.html > index.html +(cat tmpl_h.html all.tmp; sed -e s/13371337/dreadcutmain/g tmpl_f.html) > index.html rm all.tmp diff --git a/tmpl_f.html b/tmpl_f.html index 3c34d76..7b783c5 100644 --- a/tmpl_f.html +++ b/tmpl_f.html @@ -1,5 +1,20 @@


+
+ + + comments powered by Disqus
generated by sh-gallery -- 2.25.1