Skip to content

Fix Facebook post text display; switch homepage socials to masonry#8

Merged
stefan-burke merged 2 commits into
mainfrom
claude/facebook-posts-homepage-bwswpy
Jun 29, 2026
Merged

Fix Facebook post text display; switch homepage socials to masonry#8
stefan-burke merged 2 commits into
mainfrom
claude/facebook-posts-homepage-bwswpy

Conversation

@stefan-burke

Copy link
Copy Markdown
Member

Summary

  • Fix missing post text: The socials block template renders item text via item.data.name, but all 53 social post JSON files were storing the post text under title. Renamed titlename in all existing files and updated fetch-facebook-posts.js to write name going forward.
  • Switch to masonry layout: Updated the homepage socials block from horizontal: true to masonry: true so posts display as a masonry grid instead of a horizontal slider.
  • Limit to 12 posts: Added limit: 12 to the socials block in pages/home.md.
  • CMS config: Added limit (number) field to block_socials in .pages.yml so it can be edited via the CMS.

Files changed

  • social-posts/*.json (53 files) — titlename
  • scripts/fetch-facebook-posts.js — saves name instead of title
  • pages/home.md — socials block: masonry: true, limit: 12, removed horizontal: true
  • .pages.yml — added limit field to block_socials

Generated by Claude Code

claude added 2 commits June 29, 2026 18:49
The socials block template renders item text via item.data.name but the
JSON files were saving post text as title. Renamed title -> name in all
53 existing social-post JSON files and updated fetch-facebook-posts.js
to write name going forward.

Also updated the homepage socials block to use masonry: true (replacing
horizontal: true) with limit: 12, and added the limit field to .pages.yml
block_socials config.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012UzpTEps8odcfRHzAbEAXe
Eleventy throws on unknown block keys — limit is not in the allowed set
for the socials block type. Removed from home.md and .pages.yml.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012UzpTEps8odcfRHzAbEAXe
@stefan-burke
stefan-burke merged commit 02f03c4 into main Jun 29, 2026
2 checks passed
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