Remove the all
folder in place of an all.html
file. Create a main page which provides the output of it.
This commit is contained in:
20
pages/photos-all.sh
Executable file
20
pages/photos-all.sh
Executable file
@ -0,0 +1,20 @@
|
||||
#!/bin/bash
|
||||
# Alias for new All Photos feed.
|
||||
|
||||
# Move to main directory.
|
||||
DIR=`dirname $0`
|
||||
cd $DIR/..
|
||||
|
||||
# Locations of photo scripts.
|
||||
photos_all=./files/photos/all.html
|
||||
photos=./pages/photos.sh
|
||||
|
||||
# If the all script does not exist,call the generator and ignore its output.
|
||||
if [[ ! -e $photos_all ]]; then
|
||||
$photos > /dev/null
|
||||
fi
|
||||
|
||||
## Main ##
|
||||
cat $photos_all
|
||||
|
||||
exit 0
|
Reference in New Issue
Block a user