Fix social_url helper fallback documentation#61
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
WalkthroughThe pull request updates the Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
The {{social_url}} helper now falls back to sitewide @site values for all 9 platforms (previously only Facebook and Twitter). Bluesky, Instagram, LinkedIn, Mastodon, Threads, TikTok and YouTube are all configurable both per-author and sitewide under Settings > General > Social accounts.
69bb2b0 to
9135cde
Compare
Summary
Fixes the now-outdated fallback documentation for
{{social_url}}. The helper now falls back to sitewide@sitevalues for all 9 social platforms — not just Facebook and Twitter — since the rest were added to Settings > General > Social accounts a couple of weeks ago.Changes
themes/helpers/data/social_url.mdx— Replaces the two-paragraph claim that "facebook and twitter fall back; the rest output nothing" with the actual behaviour ("when called inside an author scope, looks up on the current author first, then falls back to@site; outside an author scope, reads from@sitedirectly"). Updates the "globally available" example to reflect that all platforms work the same way, not just Facebook and Twitter.Not in this PR
A follow-up will document the new
{{#social_accounts}}block helper (merged in TryGhost/Ghost#27834, not yet shipped) — see #62.