# Hugo sharing buttons

**URL:** <https://discourse.gohugo.io/t/hugo-sharing-buttons/38250>\
**Category:** tips & tricks\
**Created:** [April 18, 2022, 10:16am UTC](https://discourse.gohugo.io/t/hugo-sharing-buttons/38250 "2022-04-18T10:16:34Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stals](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/stals/32/16740_2.png) [@Stals](https://discourse.gohugo.io/u/Stals)\
**Post date:** [April 18, 2022, 10:16am UTC](https://discourse.gohugo.io/t/hugo-sharing-buttons/38250/1 "2022-04-18T10:16:34Z")

</div>

Hi, I was searching for some configurable static share buttons for Hugo and couldn’t find any. I saw links to [sharingbuttons.io](http://sharingbuttons.io) but it obviously didn’t use any of Hugo’s templating to use the page’s link and title,  
so I’ve tried to make my own partial template based on the sharingbuttons, initially for myself and then improved it to share with everyone: [hugo-share-buttons](https://github.com/Stals/hugo-share-buttons)

And so after adding the [partial](https://github.com/Stals/hugo-share-buttons) from your root config file you can change the networks you want to show, change the icon and size, and also hide the buttons on specific pages.

Here is what I use for myself:  
 ![hugo-share-buttons-small](https://canada1.discourse-cdn.com/flex036/uploads/gohugo/original/3X/6/3/63741469258943f7e827a61e2ecbe83abf4f1a2c.png)

And here are the different versions you can set up  
sizes:

 ![hugo-share-buttons-sizes](https://canada1.discourse-cdn.com/flex036/uploads/gohugo/original/3X/0/c/0caffa22bfabc90868bb22af12d8005fba410b2d.png)  
icons:  
 ![hugo-share-buttons-icon-options](https://canada1.discourse-cdn.com/flex036/uploads/gohugo/original/3X/e/3/e3f110bde0c46ccade566149bf37e61145aba2c4.png)

I go into more detail on all the settings and the setup on the [GitHub page](https://github.com/Stals/hugo-share-buttons).

Please check it out, I’ll try to help if something doesn’t work on your setup.  
I’m open to any ideas or recommendations, also please tell me if any part of the documentation needs improvement.

---

<div class="post-metadata">

**Author:** ![pitifi9191](https://avatars.discourse-cdn.com/v4/letter/p/3ab097/32.png) [@pitifi9191](https://discourse.gohugo.io/u/pitifi9191)\
**Post date:** [April 18, 2022, 10:51am UTC](https://discourse.gohugo.io/t/hugo-sharing-buttons/38250/2 "2022-04-18T10:51:54Z")

</div>

Nice job!

thanks for sharing, it ill bw nice if you use it on your own website or on a demo link one can check the functionality before integrating it into the project.

But seems nice, will test

thanks

---

<div class="post-metadata">

**Author:** ![Stals](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/stals/32/16740_2.png) [@Stals](https://discourse.gohugo.io/u/Stals)\
**Post date:** [April 18, 2022, 5:58pm UTC](https://discourse.gohugo.io/t/hugo-sharing-buttons/38250/3 "2022-04-18T17:58:43Z")

</div>

> it ill bw nice if you use it on your own website or on a demo link one can check the functionality before integrating it into the project.

I’m not sure how would I make a demo link without hosting a separate Hugo website, but I guess that’s an option for the future.  
Here is a page from my blog you can scroll down to the bottom, before the comments. Although I only use 4 buttons, like in the image above.

[Blog page with buttons](https://letsmakeagame.net/steam-game-revenue-calculator/)

---

<div class="post-metadata">

**Author:** ![pitifi9191](https://avatars.discourse-cdn.com/v4/letter/p/3ab097/32.png) [@pitifi9191](https://discourse.gohugo.io/u/pitifi9191)\
**Post date:** [April 18, 2022, 6:24pm UTC](https://discourse.gohugo.io/t/hugo-sharing-buttons/38250/4 "2022-04-18T18:24:14Z")

</div>

i am unable to see where you use this button i only see discuss comments and share buttons??? is this what you mean??

 ![Unknown](https://canada1.discourse-cdn.com/flex036/uploads/gohugo/original/3X/0/8/08186bdeb2a1a15d0742a355bc1152ed87580f1f.jpeg)

---

<div class="post-metadata">

**Author:** ![Stals](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/stals/32/16740_2.png) [@Stals](https://discourse.gohugo.io/u/Stals)\
**Post date:** [April 18, 2022, 9:44pm UTC](https://discourse.gohugo.io/t/hugo-sharing-buttons/38250/5 "2022-04-18T21:44:50Z")

</div>

Hm, no, they should be visible under “Sharing is caring!”. Can you please say what browser/OS are you using? (I’ve tried a bunch of the ones I have and they show up ok)

---

<div class="post-metadata">

**Author:** ![pitifi9191](https://avatars.discourse-cdn.com/v4/letter/p/3ab097/32.png) [@pitifi9191](https://discourse.gohugo.io/u/pitifi9191)\
**Post date:** [April 19, 2022, 8:19am UTC](https://discourse.gohugo.io/t/hugo-sharing-buttons/38250/6 "2022-04-19T08:19:21Z")

</div>

i have an addblocker so that means the buttons are being flaged as ads, this is one thing i am trying to avoide to make a button without being considered as an add etc.

---

<div class="post-metadata">

**Author:** ![Stals](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/stals/32/16740_2.png) [@Stals](https://discourse.gohugo.io/u/Stals)\
**Post date:** [April 19, 2022, 8:52am UTC](https://discourse.gohugo.io/t/hugo-sharing-buttons/38250/7 "2022-04-19T08:52:11Z")

</div>

Didn’t know Adblock was also blocking social buttons deliberately, but I don’t think that adding obfuscation into html/css is a good idea, and if the user installed the plugin that blocks social buttons as a part of its functionality, then I shouldn’t prevent it.

> **[Adblockers “block” the display of the buttons](https://wordpress.org/support/topic/adblockers-block-the-display-of-the-buttons/)**
>
> \[This thread is closed.\] Hi Robin, and thanks for this great plugin! 🙂 The problem: Since latests updates of browser extension Adblock Plus, social…
