Moondeer
Moondeer
What would really make this sick, @manton, would be letting me drop a hint to your cross-post parser (perhaps via data attribute tag with a URL value) that when cross-posting the cardify-card div should be replaced with a simple link so that other platforms generate their own preview ca... moondeer.blog
|
Embed
Moondeer
Moondeer

@Moondeer Actually, I could probably accomplish this with some Javascript that looked for links to posts and replaced them with cards.

|
Embed
In reply to
Moondeer
Moondeer

@Manton and, in fact, I did solve it with Javascript: moondeer.blog/2021/11/2...

|
Embed
manton
manton

@Moondeer That's impressive! Thanks for sharing.

|
Embed
Moondeer
Moondeer

@manton Thanks, I just moved it over to plugin-cards. It should work as opt-in via additon of the ?cardify query … I have it generating cards via hostname matching but the CSS selectors I use would likely need to be retrofitted for other themes (stuff like main .post-body a[hostname match]:not(.read-more)

|
Embed
Moondeer
Moondeer

@Moondeer actually, I'll just slap up some more plugin parameters since I'm building the Javascript and CSS through Hugo pipes anyway

|
Embed