LycheeOrg / Lychee

A great looking and easy-to-use photo-management-system you can run on your server, to manage and share photos.
https://lycheeorg.github.io/
MIT License
3.27k stars 295 forks source link

[Enhancement] Sitemap for public albums and pictures #1646

Open zeeshanabid opened 1 year ago

zeeshanabid commented 1 year ago

I would like to propose a feature to create sitemap for public albums and pictures. One of the way I use lychee is to host a public website. This does not work well with search engines. There are no links in the lychee albums for the pictures as the site is mostly Single page site. To help search engines discover and index the content a sitemap will be great. If this, or related feature is already implemented I would love to know about it.

Fensterbank commented 11 months ago

By default, webpages ending with hash are not indexed by search engines. Right now, search engines don't do anything on the app, because all the links to the albums aren't even links, they are <div> with a javascript event. I added my page to Google Search Console to test the behavior and it just does nothing.

How much would a sitemap help here? If we generate a sitemap with all picture URLs (including the hashes), would search engines care about that? They would still not navigate from there or detect links between pages due to the current frontend approach.