loconotion icon indicating copy to clipboard operation
loconotion copied to clipboard

Heuristically extract metadata for pages if none exists in the config file.

Open searchableguy opened this issue 4 years ago • 2 comments

Problem

Loconotion doesn't set the meta tags for the page if metadata for it is not supplied in the config.

Proposal

Extract metadata from the page and set the correct meta tags for the page if none is supplied in the config. If metadata cannot be extracted and there is none supplied in the config, loconotion can use the global metadata for adding meta tags.

This could be enabled by an additional option in the config.

I can implement this and open a PR if you like with some direction.

searchableguy avatar Feb 22 '21 20:02 searchableguy

Could you expand on your idea? Loconotion already uses the headline to come up with a "clean slug" if none are supplied. What other kind of metadata do you see being parsed from the headline / text combo?

leoncvlt avatar Feb 22 '21 21:02 leoncvlt

Sorry, I wasn't clear. Loconotion doesn't set the meta tags for the page if they are not supplied in the config file. I would like it to extract metadata from the page and use it to set the meta tags if they are not provided in the config.

This could include title, description, image (if there is any thumbnail) and other data which it can extract reliably.

searchableguy avatar Feb 23 '21 00:02 searchableguy