Is it possible to set metadata for a page without using front matter?
Setting page metadata
Alternative way of setting the metadata would be via GraphQL, either admin_page_create or admin_page_update , see https://documentation.platformos.com/api-reference/graphql/rootmutation.html
DBARNESThanks that’s exactly what I was looking for! So if I open the page to edit it manually after doing the mutation and there is no front matter metadata, will it remove the metadata graphql added upon sync/deploy?
Feb 22 2021 at 23:12
Do these examples help:
^ use same concept in HEAD to set title, description etc.
and also Context variable can be useful for this:
DBARNESThanks Adam. I was thinking more along the lines of using a graphql mutation to set titles and descriptions for each page in the database so that this can be done separate from editing the page itself. I see from your last link you can query on the metadata for pages so it must be possible.
Feb 22 2021 at 23:07
AdamMaciek is the man! :)
Feb 23 2021 at 20:27