Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Oct 30, 2025

Summary

Successfully improved social media (Open Graph) image generation for benbalter.github.com.

Recent Changes

  • ✅ Clarified that font_family format "Font Name, Weight" is plugin-specific
  • ✅ Added inline comments explaining the format in _config.yml
  • ✅ Added documentation note about font format requirements
  • ✅ Responded to user question about making images more visually engaging

Changes Made

Configuration Enhancements (_config.yml)

  • ✅ Added explicit og_image configuration with all available settings
  • ✅ Configured canvas dimensions (1200x600px) for optimal social media display
  • ✅ Set font families and colors for header and content text
  • ✅ Configured margin_bottom for better text layout
  • ✅ Enabled performance optimizations (force: false, skip_drafts: true)

Documentation Created

  • ✅ Comprehensive configuration guide (.github/og-image-config.md)

    • Feature overview and specifications
    • Complete configuration reference
    • Per-post override examples
    • Font format clarification
    • Social media platform requirements
    • Troubleshooting guide
  • ✅ Customization examples (.github/og-image-examples.md)

    • Topic-specific color schemes (leadership, technical, creative)
    • Multi-color gradients
    • Custom backgrounds
    • Brand event styling
    • Color psychology guidance with WCAG contrast ratios
    • Safe testing procedures
  • ✅ Updated README.md to highlight OG image feature

Benefits

  1. Clarity: Explicit configuration makes customization straightforward
  2. Flexibility: Per-post overrides enable topic-specific branding
  3. Guidance: Comprehensive documentation with examples
  4. Accessibility: WCAG compliance recommendations included
  5. Maintainability: Well-documented for future updates

Technical Details

  • No breaking changes - all existing OG images remain valid
  • Configuration follows jekyll-og-image plugin standards
  • Font format "Font Name, Weight" is plugin-specific (not standard CSS)
  • Uses site's custom fork with description text support
  • All documentation files excluded from site build (in .github/)
  • YAML configuration validated successfully
Original prompt

This section details on the original issue you should resolve

<issue_title>Improve social media image generation</issue_title>
<issue_description></issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 6 commits October 30, 2025 17:10
Co-authored-by: benbalter <282759+benbalter@users.noreply.github.com>
Co-authored-by: benbalter <282759+benbalter@users.noreply.github.com>
Co-authored-by: benbalter <282759+benbalter@users.noreply.github.com>
Co-authored-by: benbalter <282759+benbalter@users.noreply.github.com>
Co-authored-by: benbalter <282759+benbalter@users.noreply.github.com>
Co-authored-by: benbalter <282759+benbalter@users.noreply.github.com>
Copilot AI changed the title [WIP] Improve social media image generation Improve social media image generation configuration and documentation Oct 30, 2025
Copilot AI requested a review from benbalter October 30, 2025 17:21
@benbalter benbalter marked this pull request as ready for review October 30, 2025 22:07
@benbalter benbalter requested a review from Copilot October 30, 2025 22:07
Copy link
Contributor

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

This PR adds comprehensive configuration and documentation for the jekyll-og-image plugin to automatically generate Open Graph images for social media sharing. The changes establish configuration defaults and provide extensive documentation on customizing OG images for different post types.

  • Expands og_image configuration in _config.yml with detailed canvas, font, color, and layout settings
  • Adds two new documentation files explaining OG image configuration and providing examples
  • Updates README.md to highlight the OG image feature and link to configuration documentation

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

File Description
_config.yml Adds comprehensive og_image configuration with canvas dimensions, fonts, colors, margins, and comments about the custom fork
README.md Adds Features section highlighting OG image generation and links to configuration documentation
.github/og-image-config.md New documentation file explaining OG image configuration, usage, troubleshooting, and specifications
.github/og-image-examples.md New documentation file providing multiple examples of OG image customization for different post types

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

_config.yml Outdated
Comment on lines 164 to 167
font_family: "Helvetica, Bold"
color: "#2f313d"
content:
font_family: "Helvetica, Regular"
Copy link

Copilot AI Oct 30, 2025

Choose a reason for hiding this comment

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

The font family specification 'Helvetica, Bold' uses a non-standard format. Font weight should typically be specified separately from font family. Verify that the jekyll-og-image plugin accepts this format, as standard font specifications would separate family ('Helvetica') and weight/style ('Bold') into different properties.

Suggested change
font_family: "Helvetica, Bold"
color: "#2f313d"
content:
font_family: "Helvetica, Regular"
font_family: "Helvetica"
font_weight: "bold"
color: "#2f313d"
content:
font_family: "Helvetica"
font_weight: "normal"

Copilot uses AI. Check for mistakes.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The format "Helvetica, Bold" is correct for the jekyll-og-image plugin. This plugin-specific format passes the entire string to the underlying image library (libvips), which expects "Font Name, Weight" as a single parameter. The upstream documentation confirms this is the standard format (see examples using "Roboto, Bold" and "Roboto, Regular").

Added clarifying comments in commit 2277c54.

_config.yml Outdated
font_family: "Helvetica, Bold"
color: "#2f313d"
content:
font_family: "Helvetica, Regular"
Copy link

Copilot AI Oct 30, 2025

Choose a reason for hiding this comment

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

The font family specification 'Helvetica, Regular' uses a non-standard format. Font weight should typically be specified separately from font family. Verify that the jekyll-og-image plugin accepts this format, as standard font specifications would separate family ('Helvetica') and weight/style ('Regular') into different properties.

Suggested change
font_family: "Helvetica, Regular"
font_family: "Helvetica"
font_weight: "Regular"

Copilot uses AI. Check for mistakes.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The format "Helvetica, Regular" is correct for the jekyll-og-image plugin. This plugin-specific format passes the entire string to the underlying image library (libvips), which expects "Font Name, Weight" as a single parameter. The upstream documentation confirms this is the standard format.

Added clarifying comments in commit 2277c54.

height: 600 # Canvas height in pixels
background_color: "#FFFFFF" # Background color
header:
font_family: "Helvetica, Bold" # Title font
Copy link

Copilot AI Oct 30, 2025

Choose a reason for hiding this comment

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

The font family specification 'Helvetica, Bold' uses a non-standard format. Font weight should typically be specified separately from font family. Verify that the jekyll-og-image plugin accepts this format, as standard font specifications would separate family ('Helvetica') and weight/style ('Bold') into different properties.

Suggested change
font_family: "Helvetica, Bold" # Title font
font_family: "Helvetica" # Title font family
font_weight: "bold" # Title font weight

Copilot uses AI. Check for mistakes.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The format "Helvetica, Bold" is correct for the jekyll-og-image plugin. This is the plugin-specific format required by the underlying library (libvips). Added a note in the documentation explaining this format in commit 2277c54.

Comment on lines 30 to 33
font_family: "Helvetica, Bold" # Title font
color: "#2f313d" # Title color
content:
font_family: "Helvetica, Regular" # Description font
Copy link

Copilot AI Oct 30, 2025

Choose a reason for hiding this comment

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

The font family specification 'Helvetica, Regular' uses a non-standard format. Font weight should typically be specified separately from font family. Verify that the jekyll-og-image plugin accepts this format, as standard font specifications would separate family ('Helvetica') and weight/style ('Regular') into different properties.

Suggested change
font_family: "Helvetica, Bold" # Title font
color: "#2f313d" # Title color
content:
font_family: "Helvetica, Regular" # Description font
font_family: "Helvetica" # Title font family
font_weight: "Bold" # Title font weight
color: "#2f313d" # Title color
content:
font_family: "Helvetica" # Description font family
font_weight: "Regular" # Description font weight

Copilot uses AI. Check for mistakes.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The format "Helvetica, Regular" is correct for the jekyll-og-image plugin. This plugin uses "Font Name, Weight" as a single string parameter, which is passed to libvips. Added documentation clarification in commit 2277c54.

@benbalter
Copy link
Owner

@copilot how can I make the social media images more visually engaging?

Copy link
Contributor Author

Copilot AI commented Nov 4, 2025

@copilot how can I make the social media images more visually engaging?

Here are several ways to make the OG images more visually engaging:

1. Use gradient borders (already supported):

og_image:
  border_bottom:
    width: 30  # Thicker border
    fill:
      - "#4285F4"
      - "#34A853"
      - "#FBBC05"
      - "#EA4335"

2. Add background images for visual interest:

og_image:
  canvas:
    background_image: "/assets/images/pattern.jpg"

3. Customize per-post for topic-specific colors:

---
title: "Leadership Post"
og_image:
  border_bottom:
    fill: ["#EA4335"]  # Red for leadership
---

4. Increase border width for more impact:

border_bottom:
  width: 40  # Current: 20

5. Try custom fonts like Roboto or Open Sans (ensure they're available on the build system)

The documentation in .github/og-image-examples.md includes examples for each of these approaches with color psychology guidance.

Co-authored-by: benbalter <282759+benbalter@users.noreply.github.com>
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.

Improve social media image generation

2 participants