Skip to content

Add template for the Open Home Foundation#6

Open
mrdarrengriffin wants to merge 5 commits into
mainfrom
ohf-og
Open

Add template for the Open Home Foundation#6
mrdarrengriffin wants to merge 5 commits into
mainfrom
ohf-og

Conversation

@mrdarrengriffin
Copy link
Copy Markdown
Member

Adds a universal template for Open Home Foundation OGs

Copilot AI review requested due to automatic review settings April 24, 2026 12:24
@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 24, 2026

Deploy Preview for ohf-assets ready!

Name Link
🔨 Latest commit 84f98ff
🔍 Latest deploy log https://app.netlify.com/projects/ohf-assets/deploys/6a059c52fa53300009df9699
😎 Deploy Preview https://deploy-preview-6--ohf-assets.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread server.mjs
Comment thread server.mjs
Comment thread public/generate-opengraph/index.html
Comment thread netlify/functions/opengraph.mjs
Comment thread netlify/functions/opengraph.mjs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants