A recent commit changed the config for social to use a map instead of a
list, this broke the social share/follow, though a quick fix seems to
restore it and removes the need for sorting.
Closes#808
I checked the wikipedia example from the original issue and it seems
like this will also fix that. I'm not sure if you had anything else to
fix, feel free to push to my branch.
You can't just cache the share links, that will result into every blog
post having the same URL.
Just use `partial` on the getShareLink.html. So now each post will show
the correct URL to share the post via social media or alike.
---------
Signed-off-by: Melroy van den Berg <melroy@melroy.org>
Signed-off-by: Patrick Kollitsch <83281+davidsneighbour@users.noreply.github.com>
Co-authored-by: Patrick Kollitsch <83281+davidsneighbour@users.noreply.github.com>
You definitely want to **add Plainify transformer first**, because the
body content will become a HTML encoding mess. I left `HTMLEscape` there
as well, just be sure for security reasons. But if you want, I can
remove the second transformer.
Like a tweet on X will look like this:

After implementing `transform.Plainify`, it will look much better:

(ignore the red, I don't have X premium pro blabla, it's red because I
hit the max limit of chars)
Signed-off-by: Melroy van den Berg <melroy@melroy.org>
Do NOT use the same cache name for social _share_ and social _follow_..
This will never work of course.
Signed-off-by: Melroy van den Berg <melroy@melroy.org>