components social share - fitizens/hugo-modules GitHub Wiki
Social share components
Install Module
Add the following code to your module list in the config/_default/module.toml
file.
[imports](/fitizens/hugo-modules/wiki/imports)
path = "github.com/gethugothemes/hugo-modules/components/social-share"
Add the following code to your assets/css/main.css
file.
@import 'social-share';
Share Implementation
Call it, as a partial in your theme.
Available parameters:
Context
: .Class
: wrapper classTitle
: article titleFacebook
: share facebook | defaulttrue
X
: share x | defaulttrue
Email
: share email | defaulttrue
Reddit
: share reddit | defaulttrue
Whatsapp
: share whatsapp | defaulttrue
Telegram
: share telegram | defaulttrue
Linkedin
: share linkedin | defaulttrue
Pinterest
: share pinterest | defaulttrue
Tumblr
: share tumblr | defaulttrue
Vk
: share vk | defaulttrue
Fediverse
: share to any fediverse instance | defaulttrue
Copy
: copy link | defaulttrue
<!-- social share -->
{{ partial "social-share.html" (dict "Context" .) }}