Updating page metatags

Getting started with Vapid and I was wondering if there was a recommended way to update page metatags like title, description, or open graph tags

My first thought was that this could be a partial tag, included across multiple pages. However, I don’t see a way to pass values to a partial. (There’s an enhancement request open for it, though!) For example:

{{> partals/metadata ogtitle="Some OpenGraph title" ogdescription="Open Graph description"}}

If partials are not the answer, is there a better way?

@dougmakingstuff Thanks for reminding me about the enhancement request—I’ll look into it more this week.

In the meantime, I think using the partials for any common metadata (i.e., ones that don’t need to be dynamic), and including page-specific tags directly in each page, might be the best short-term solution.

1 Like

That sounds great. Thanks!