Skip to content

Commit

Permalink
Allow local usage by linking to index.html
Browse files Browse the repository at this point in the history
Link to index.html instead of directory. This allows the local browser to
follow the links directly.

Fixes Jack000#24 .
  • Loading branch information
sercxanto committed Jul 31, 2017
1 parent 257d6b1 commit 978ae75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions expose.sh
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ do
break
fi
done
navigation+="<li class=\"gallery $active\" data-image=\"${gallery_url[gindex]}\"><a href=\"{{basepath}}${nav_url[j]}\"><span>${nav_name[j]}</span></a><ul>{{marker$j}}</ul></li>"
navigation+="<li class=\"gallery $active\" data-image=\"${gallery_url[gindex]}\"><a href=\"{{basepath}}${nav_url[j]}/index.html\"><span>${nav_name[j]}</span></a><ul>{{marker$j}}</ul></li>"
fi
((remaining--))
elif [ "${nav_depth[j]}" = "$depth" ]
Expand All @@ -670,7 +670,7 @@ do
break
fi
done
substring="<li class=\"gallery $active\" data-image=\"${gallery_url[gindex]}\"><a href=\"{{basepath}}${nav_url[j]}\"><span>${nav_name[j]}</span></a><ul>{{marker$j}}</ul></li>{{marker$parent}}"
substring="<li class=\"gallery $active\" data-image=\"${gallery_url[gindex]}\"><a href=\"{{basepath}}${nav_url[j]}/index.html\"><span>${nav_name[j]}</span></a><ul>{{marker$j}}</ul></li>{{marker$parent}}"
fi
navigation=$(template "$navigation" "marker$parent" "$substring")
((remaining--))
Expand Down

0 comments on commit 978ae75

Please sign in to comment.