Fix Facebook post text display; switch homepage socials to masonry#8
Merged
Merged
Conversation
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
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.
Summary
item.data.name, but all 53 social post JSON files were storing the post text undertitle. Renamedtitle→namein all existing files and updatedfetch-facebook-posts.jsto writenamegoing forward.socialsblock fromhorizontal: truetomasonry: trueso posts display as a masonry grid instead of a horizontal slider.limit: 12to the socials block inpages/home.md.limit(number) field toblock_socialsin.pages.ymlso it can be edited via the CMS.Files changed
social-posts/*.json(53 files) —title→namescripts/fetch-facebook-posts.js— savesnameinstead oftitlepages/home.md— socials block:masonry: true,limit: 12, removedhorizontal: true.pages.yml— addedlimitfield toblock_socialsGenerated by Claude Code