Add template for the Open Home Foundation#6
Open
mrdarrengriffin wants to merge 5 commits into
Open
Conversation
✅ Deploy Preview for ohf-assets ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
There was a problem hiding this comment.
Pull request overview
Adds an Open Home Foundation (OHF) template and extends the image generator to support additional “social” output sizes beyond the default OG dimensions.
Changes:
- Added an OHF layout/config with updated styling and support for optional category/author rendering.
- Introduced
/social/<width>/<height>?url=...endpoints (local server + Netlify function) for portrait and square renders. - Updated the preview UI and documentation to use and describe the new social endpoints.
Reviewed changes
Copilot reviewed 6 out of 9 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| templates/ohf/layouts/default.mjs | Updates OHF template rendering (category/author fields, OG vs social background selection, layout tweaks). |
| templates/ohf/config.json | Configures OHF domain, colors, and remote logo asset URL. |
| templates/ohf/assets/background.jpg | Adds an OHF background asset for template rendering. |
| server.mjs | Adds local dev server support for /social/<w>/<h> rendering. |
| public/generate-opengraph/index.html | Adds category input and updates URL-mode previews to call /social/* endpoints. |
| netlify/functions/opengraph.mjs | Adds Netlify routing and implementation for /social/<w>/<h> image generation. |
| README.md | Documents the new /social/<width>/<height> endpoint. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a universal template for Open Home Foundation OGs