denoland / saaskit

A modern SaaS template built on Fresh.
https://deno.com/saaskit
MIT License
1.15k stars 139 forks source link

feature: add meta tags to blog #31

Closed niklasmtj closed 1 year ago

niklasmtj commented 1 year ago

To enable OpenGraph descriptions, pictures etc. we should also add the most important meta tags to the blog landing and post pages. What do you think?

iuioiua commented 1 year ago

I like that idea. PRs are most welcome.

iuioiua commented 1 year ago

Would you like to take this one, @niklasmtj?

niklasmtj commented 1 year ago

Yes please. Sorry had some busy days.

I was thinking about using the great metas plugin from Lume (docs) as a reference style to add those meta tags via the frontmatter. What do you think?

Otherwise we could also just use the description which is already in the frontmatter. Since most of them are already set somewhere on the pages we could aggregate into the meta tags Maybe the following metas would be a good start:

iuioiua commented 1 year ago

Sweet! No rush 👍🏾

I think we should use the existing frontmatter from the post + constants.ts + props.url.origin (for URLs). Beyond that, I'm open (mainly thinking about how cover photos are done).