15 Commits

Author SHA1 Message Date
Jeremy Mayeres
e64f74c492
theme(fix): social follow/share using new config (#821)
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.
2025-02-09 15:03:52 +07:00
Patrick Kollitsch
1f4ac20f4f
theme(fix): remove additional config load and some refactoring
Signed-off-by: Patrick Kollitsch <patrick@davids-neighbour.com>
2024-12-15 13:00:09 +07:00
Patrick Kollitsch
055015e5b4
fix: proper rel attribute evaluation
Signed-off-by: Patrick Kollitsch <patrick@davids-neighbour.com>
2024-10-27 20:24:03 +07:00
Melroy van den Berg
473c7c14c6
theme(fix): remove caching of share links (#757)
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>
2024-10-24 16:58:58 +07:00
Patrick Kollitsch
1bcc471e00
theme(fix): paths to social func partials
Signed-off-by: Patrick Kollitsch <patrick@davids-neighbour.com>
2024-10-24 16:56:53 +07:00
Patrick Kollitsch
ae14ccf407
docs(fix): update theme.toml with min version and authors
Signed-off-by: Patrick Kollitsch <patrick@davids-neighbour.com>
2024-10-24 15:28:55 +07:00
Melroy van den Berg
2cfb09e9a3
theme(fix): add transform.Plainify to the summary body content of the share links (#758)
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:


![image](https://github.com/user-attachments/assets/73ab37b0-decc-47a4-8bbd-cf43cbef1641)


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


![image](https://github.com/user-attachments/assets/962ba515-72ae-4b46-827f-2c477358d065)

(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>
2024-10-24 05:56:04 +07:00
Melroy van den Berg
12cd81b681
theme(fix) social share cache (#755)
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>
2024-10-22 17:53:04 +07:00
Patrick Kollitsch
a9cd70d1e6
theme(fix): bring some logic into /disabled sharing
Signed-off-by: Patrick Kollitsch <patrick@davids-neighbour.com>
2024-10-21 06:54:33 +07:00
Patrick Kollitsch
14eeb655ce
theme(fix): hover color for social icons
Signed-off-by: Patrick Kollitsch <patrick@davids-neighbour.com>
2024-10-21 05:59:52 +07:00
Patrick Kollitsch
d9f9cb513f
theme(feat): social share links (wip)
Signed-off-by: Patrick Kollitsch <patrick@davids-neighbour.com>
2024-10-21 05:46:32 +07:00
Patrick Kollitsch
8762f563f9
theme(fix): making sure the noopener rel attribute stays even with other configurations
Signed-off-by: Patrick Kollitsch <patrick@davids-neighbour.com>
2024-10-20 17:23:51 +07:00
Patrick Kollitsch
7913086a0f
theme(fix): add labels and label override functionality
Signed-off-by: Patrick Kollitsch <patrick@davids-neighbour.com>
2024-10-20 15:58:53 +07:00
Patrick Kollitsch
9254c455c9
theme(fix): override profile link generation with full link
Signed-off-by: Patrick Kollitsch <patrick@davids-neighbour.com>
2024-10-20 15:27:19 +07:00
Patrick Kollitsch
4f3e709d83
theme(feat): social media follow links
documentation will follow at https://github.com/theNewDynamic/gohugo-theme-ananke/wiki/Social-media-network-setup

Signed-off-by: Patrick Kollitsch <patrick@davids-neighbour.com>
2024-10-20 12:47:56 +07:00