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.
In these cases the site permalink is used instead of the social network
URL for sharing as defined in the `link` value
(https://www.linkedin.com/shareArticle in the below example)
Most visible case is LinkedIn but all social networks that have
```toml
[ananke.social.networks.particles]
...
params = "..."
```
in `config/_default/params.toml` are affected by this bug.
Closes#768.
* assets: replace Mastodon logo
The new version is based on the logo-black.svg file distributed from
https://joinmastodon.org/branding, adjusted to match the metrics of the
other social logos.
* layouts: change the color for the mastodon social link
I've picked a purple from https://joinmastodon.org/branding.
We look for .Params.featured_image
If found > we use that as URL
If we find a Page resource matching the value of the above, we use its .RelPermalink
If none of the above we look for an resource whose filepath contains `featured` or `cover` and use its .RelPermalink if found
Fixes#233Fixes#407
* Add support for auto-detection of featured images.
* Rename Partial, Add Documentation
Renamed the partial to func/GetFeaturedImage.html.
Additionally added more documentation in the partial to explain how it
worked, and what values were returned.
Co-authored-by: Sean Zimmermann <sz2243@columbia.edu>