-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support open graph #178
Comments
Same comment as #179 (comment): this issue needs further specificity to be actionable. |
This can be done with #253 |
Exposing meta data to the page could help in more scenarios. see #1036 |
OG images would also let us show thumbnails for projects and pages on the platform. |
related: #168 |
+1 to using the front matter for this. We could expand on the front matter + |
Is this already done with the head option (and the ability to reference local assets in the head)? |
Not quite yet. I'd like to explore a possibility for the head option (as well as header and footer) to be specified as a function, that would receive as arguments some meta data about the project config (including the origin option #180), and the current page (front matter, title, and possibly contents/files, if the user wants to insert an excerpt / summary or pick the first image from the contents) #1036. (Also mentioned #56 (comment).) EDIT: I've now explored this |
I’m still not sure what this needs. Why not specify the head front matter option? Do we just want shorthand so you can specify a description front matter option (and maybe image) instead that gets promoted to the corresponding |
The way I imagine this, the configuration head option, if specified as a function (#1255) would receive meta data, from the page's front matter (or first H1 if the title is not defined as front matter), and would build the og "card" from these values — it seems like a common convenience in CMS. I did not even consider typing everything explicitly, although it (almost) works:
Unfortunately it does not work fully because The absolute URL issue could be fixed automatically but would require the origin option (#180). If we want to make this more convenient, the title should be picked up automatically as well as the image's dimensions. (And maybe the description could be automated too.) |
OpenGraph is only useful for public projects, and in that case it's much easier to point to the See this debug view. Supporting the other "card" or "og" fields (title, etc) is feasible within the same |
Quick update on @Fil’s current techniques… (@Fil correct me if anything in this description is wrong; sharing guidance in case anyone else similarly wants thumbnails.) Pangea currently uses Playwright to take screenshots in This script is run manually and the thumbnails are committed to the source repo in the The head config option is specified as a A |
Design and implement a system (template? hook? options in frontmatter?) that allows the developer to add proper tags so that their page has the relevant information to create a "card" or "summary" on social platforms. Usually:
This needs the origin and base options (#180).
The text was updated successfully, but these errors were encountered: