TJW-Tech Wiki

Mandatory Happiness

User Tools

Site Tools


scripts:bash:gallery-gen

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
scripts:bash:gallery-gen [2016/01/18 11:39]
timothy
scripts:bash:gallery-gen [2016/02/20 22:17] (current)
Line 10: Line 10:
  
 # picpp (Thumbs Per Page) is how many thumbnails will appear per page on the picture gallery. # picpp (Thumbs Per Page) is how many thumbnails will appear per page on the picture gallery.
-picpp=150+picpp=50
  
 # Name of the gallery (default is the current directory) # Name of the gallery (default is the current directory)
Line 61: Line 61:
     fi     fi
   done   done
-    ​if [ $page -eq 1 ]; then +  echo "<​hr><​p>​Page:​ " >> picgallery/​index$page.htm 
-      echo "<​hr><​p>​Index generated on: $(date)</​p></​body></​html>"​ >> picgallery/​index1.htm +  for i in $(seq 1 $(($page - 1))); do 
-    else +    echo "<a href=\"​index$i.htm\">​$i</​a>"​ >> picgallery/​index$page.htm 
-      for i in $(seq 1 $(($page - 1))); do +    echo "<a href=\"​index$page.htm\">​$page</​a>"​ >> picgallery/​index$i.htm 
-        echo "<​hr><​p>​Index generated on: $(date)</​p></​body></​html>"​ >> picgallery/​index$i.htm +  done 
-      done +  echo "$page " >> picgallery/​index$page.htm 
-    fi+  echo "</​p><​hr><​p>​Index generated on: $(date)</​p></​body></​html>"​ >> picgallery/​index$page.htm 
 +  ​if [ $page -eq 1 ]; then 
 +    echo "</p><​hr><​p>​Index generated on: $(date)</​p></​body></​html>"​ >> picgallery/​index1.htm 
 +  else 
 +    for i in $(seq 1 $(($page - 1))); do 
 +      echo "</p><​hr><​p>​Index generated on: $(date)</​p></​body></​html>"​ >> picgallery/​index$i.htm 
 +    done 
 +  fi
  
   # Video Gallery   # Video Gallery
scripts/bash/gallery-gen.1453079351.txt.gz · Last modified: 2016/02/20 22:17 (external edit)