map5nl / map5issues

map5.nl info and issue tracking
https://map5.nl
Other
1 stars 0 forks source link

Add OpenGraph / embed #51

Open danieldegroot2 opened 10 months ago

danieldegroot2 commented 10 months ago

There currently seems to be barely any embed for map5.nl / map5topo.nl (at least not when posted on Discord); only title is shown, for map5opo also short description. This can be used to give a comprehensive preview of the website when linked on i.e. social media.

justb4 commented 9 months ago

Ok thanks that is useful. The regular website uses plain HTML so is easy to extend, but map5topo.nl uses MkDocs with Material (seems a paid option?), need to figure out how, unless you are able to supply a PR?

danieldegroot2 commented 9 months ago

See Using the theme custom_dir. ( via https://stackoverflow.com/questions/68313618/mkdocs-meta-tags-for-opengraph )

Paid features are those listed at Insiders. Out of Social cards, only the Customization (custom layouts and backgrounds) is restricted to sponsors. (see also the tutorial video linked at the top of the page.) ( via https://github.com/sponsors/squidfunk/ < https://squidfunk.github.io/mkdocs-material/insiders/faq/sponsoring/ )

justb4 commented 7 months ago

Could not get mkdocs-meta-manager working. Found and used the ultralytics mkdocs plugin. This automates meta tag population, including OpenGraph tags by crawling page content. May need further cleanup in content to generate meaningful tags, but is a start.

That is for: https://map5topo.nl/ . map5.nl is still plain handwritten html...