summaryrefslogtreecommitdiff
path: root/photographed/monthly.sh
diff options
context:
space:
mode:
Diffstat (limited to 'photographed/monthly.sh')
-rwxr-xr-xphotographed/monthly.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/photographed/monthly.sh b/photographed/monthly.sh
index c8a849a..7003357 100755
--- a/photographed/monthly.sh
+++ b/photographed/monthly.sh
@@ -18,7 +18,7 @@ padimg() {
printf "\t\t\t<a href=\"$site/$p"
printf "\n%s\n" "\" target=\"_blank\">"
- printf "\t\t\t\t%s%s%s" "<img src=\"" $site $p
+ printf "\t\t\t\t%s%s/%s" "<img src=\"" $site $p
printf "%s\n" "\" loading=\"lazy\">"
printf "\t\t\t</a>\n"
printf "\t\t\t<br>\n"
@@ -88,10 +88,11 @@ do
nextoutfn=photographed/${year}-${month}.html
if ! [ -z $outfn ]
then
- printf "\t\t\t<br><a href=\"$poutfn\"><h2>later</h2></a>" >> $outfn
- printf "\t\t\t<br><a href=\"$nextoutfn\"><h2>earlier</h2></a>" >> $outfn
+ printf "\t\t\t<br><a href=\"${poutfn#*/}\"><h2>later</h2></a>" >> $outfn
+ printf "\t\t\t<br><a href=\"${nextoutfn#*/}\"><h2>earlier</h2></a>" >> $outfn
cat footer/photographed.txt >> $outfn
fi
+ poutfn=$outfn
outfn=$nextoutfn
echo $outfn
cat header/photographed.txt > $outfn