McShelby / hugo-theme-relearn

A theme for Hugo designed for documentation
https://mcshelby.github.io/hugo-theme-relearn/
MIT License
432 stars 187 forks source link

Specific text for social preview #936

Closed sedyh closed 1 month ago

sedyh commented 1 month ago

Hello, is there a way to specify what exactly to display in the social preview text? Sometimes it captures too much context, like code from spoilers. Ideally, I would like to display only a piece of the description.

I guess there can be some property controls property="og:description" and itemprop="description"?

image

image

McShelby commented 1 month ago

The theme selects the description, and if not set, the summary

sedyh commented 1 month ago

Oh, so there are a lot of ways to separate the content from description. Thanks, I guess it can be closed then.