welpo / tabi

A modern Zola theme with search, multilingual support, optional JavaScript, a perfect Lighthouse score, and a focus on accessibility.
https://welpo.github.io/tabi/
MIT License
113 stars 37 forks source link

OpenGraph tags? #353

Closed arichtman closed 3 months ago

arichtman commented 3 months ago

Feature Request

Summary

Adding OpenGraph tags to header and as optional config

Motivation

Links to pages show a more customized and richer preview card.

Detailed Description

I think it's just some short code in the header to interpolate the configuration items.

Additional Context

Specification: https://ogp.me/

Here's some themes that do it: https://www.google.com/search?client=firefox-b-d&q=site%3Agetzola.org+opengraph

Here's a comment saying it belongs in the theme: https://zola.discourse.group/t/idea-better-page-metadata-for-published-pages/111/2

(I wouldn't have minded if it was supported better in core Zola tbh)

I can take a crack at it - mostly checking if there's any interest.

Sample

image

welpo commented 3 months ago

Hi!

The header template includes a bunch of og tags (search for og:).

What tags are you missing?

arichtman commented 3 months ago

Oh whoops! I'm blind. Sorry and thanks for your time!

welpo commented 3 months ago

No worries! Appreciate the intent~

welpo commented 3 months ago

Added a mention of the feature on the README :)