loconotion
loconotion copied to clipboard
Heuristically extract metadata for pages if none exists in the config file.
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.
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?
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.