add disqus support master
authorBernhard Urban <lewurm@gmail.com>
Wed, 11 Jul 2012 21:31:25 +0000 (23:31 +0200)
committerBernhard Urban <lewurm@gmail.com>
Wed, 11 Jul 2012 21:31:25 +0000 (23:31 +0200)
jpg2html.sh
tmpl_f.html

index dc85e1b5ea3583d3308ca076a172fe66df915364..e826dfc73a90e62246be6992145e70150fd3412f 100755 (executable)
@@ -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 "<br /><br />download: <a href=\"big.zip\">hi-res</a>, <a href=\"small.zip\">lo-res</a>\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
index 3c34d76b91c3b04df2ca39b74127b5f434b9b0b4..7b783c50396d5f7c95e4e3625abf2357f17a50dd 100644 (file)
@@ -1,5 +1,20 @@
                <br /> <br /> <br />
                <div id="socialshareprivacy"></div>
+               <div id="disqus_thread"></div>
+        <script type="text/javascript">
+            /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
+            var disqus_shortname = 'dreadcutwurm'; // required: replace example with your forum shortname
+                       var disqus_identifier = '13371337'; // replace me
+
+            /* * * DON'T EDIT BELOW THIS LINE * * */
+            (function() {
+                var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
+                dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
+                (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
+            })();
+        </script>
+        <noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
+        <a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
 
                <div class="spacer_right">
                        generated by <a href="http://wien.tomnetworks.com/gitweb/?p=sh-gallery.git">sh-gallery</a>