Skip to content

Setting the share title (og:title metatag) without affecting share image (index.png) on the front page #7597

Closed Answered by kamilkrzyskow
pekkaklarck asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @pekkaklarck,
from your shared links for the social preview we can surmise that the title for the embeds is taken from the og:title.

So to answer in order:

  1. Is the different behavior with the front page compared to other pages regarding to the share title a feature or a bug?

Title used for the Social Card

# Compute page title and description
title = page.meta.get("title", page.title)

Title used for the og:title meta tag:

# Compute page title
title = page.meta.get("title", page.title)

Replies: 3 comments 9 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by pekkaklarck
Comment options

You must be logged in to vote
9 replies
@pekkaklarck
Comment options

@squidfunk
Comment options

@pekkaklarck
Comment options

@squidfunk
Comment options

@pekkaklarck
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants