Social Media Sharing Buttons
Grow your audience by encouraging visitors to share your content. The Page Sharer supports email, X (Twitter), Facebook, LinkedIn, WhatsApp, Weibo, and many more.
Configuration
Section titled “Configuration”Enable Page Sharer
Section titled “Enable Page Sharer”To enable the sharing buttons on a specific page, add share: true to the page’s front matter:
---title: My Pageshare: true---Customizing Networks
Section titled “Customizing Networks”Social networks are configured in data/page_sharer.yaml.
-
Locate or Create the Config File Check if you have
data/page_sharer.yaml. If not, download the default file and place it in yourdata/folder.Directorydata/
- page_sharer.yaml
-
Edit the Configuration Open
data/page_sharer.yamlto enable, disable, reorder, or add networks.
Toggle buttons by setting enable to true or false.
- id: twitter enable: true- id: facebook enable: falseSimply rearrange the list items in the YAML file to change the display order of the buttons.
Add a new entry to the list:
- Duplicate an existing block.
- Set a unique
id. - Choose an icon.
- Set the
urlpattern, using{url}and{title}as placeholders.
- id: custom-network icon: comments url: "https://example.com/share?url={url}&text={title}" title: "Share on MyNetwork" enable: true