novafacile / novagallery

novaGallery - a beautiful and and ease to use php image gallery for your photos - flat file - no database required - modern responsive design
https://novagallery.org
GNU Affero General Public License v3.0
74 stars 11 forks source link

Add per-album description #51

Open awong234 opened 7 months ago

awong234 commented 7 months ago

Hello!

I am testing this gallery out and it seems to be just what I want, it's very nice thank you!

I have never written PHP before, so please bear with my naivete. I wanted to see if I could include some small information on an album basis; for example, if it's pictures related to a trip, write a few sentences about the trip and include an embed of the google maps trip, something like that. It's related to #17.

It seemed to me easy to just have a description.html file in each album folder, and if it has content, then display that content.

Not the most user-friendly, but writing a little bit of HTML isn't a huge ask nowadays I suppose. I tested that it works on my website.

I suppose to make it more robust and easier for people maybe adding a markdown conversion process so that the user doesn't have to worry about syntax errors in the html, they would just supply a description.md file in each album. But I guess I also like the low-dependency approach used here.

Anyway, it works for my purposes but obviously I haven't spent a lot of time thinking about a general solution to the problem or any problems associated with how this has been written, so I'm mainly writing this in case it can be useful for another user to patch into their code, with no expectation that it should be merged.

Thanks for the discussion!

david-novafacile commented 7 months ago

Thank you very much! :+1: Thats a great idea and will be included in v2.