Jack000 / Expose

A simple static site generator for photoessays
MIT License
4.39k stars 257 forks source link

Sidebar links to sub directory instead of `subdirectory/index.html` #24

Open jiahaog opened 8 years ago

jiahaog commented 8 years ago

I have a nested directory of photos, but when simply run expose, the links on the left sidebar link to the directory instead of the index.html within that directory. For example, the links are

<a href="../subfolder" ... ></a>

which ends up opening a new finder window for that directory. I think they should be referencing the index.html within the directly which will produce the correct behaviour as such:

<a href="../subfolder/index.html" ... ></a>

I'm not sure if this is the intended behaviour or if I'm using it wrongly, I've tried running it in both Safari and Chrome on my Mac.

Jack000 commented 8 years ago

Presumably you'll be putting the generated site on a server somewhere, in which case the index file is served when you visit the directory url. It could work in the finder just by adding index.html to the end of the paths, but then the urls would become a bit ugly.

sercxanto commented 7 years ago

+1 I also like the idea to browse the gallery locally. With the referenced change the links resolved correctly in the local browser.