themefisher / meghna-hugo

Meghna Hugo is a responsive, minimalist, lightweight, and fast loading one-page business theme built with HTML5/CSS3, Hugo, JavaScript, and JQuery.
https://gethugothemes.com/products/meghna/?utm_source=meghna_github&utm_medium=referral&utm_campaign=github_theme_about
MIT License
441 stars 1.23k forks source link

Share button dont show the url (facebook , twitter ,and more ) #177

Closed 0x32bit closed 2 years ago

0x32bit commented 2 years ago

I tired search the config file of url share button its always open and share /blog/how-to-setup-hugo/ how do i fix this ? I already change the config.toml base url but nothing happened

divinerites commented 2 years ago

Params.post_share = true

and general social : [[params.social]]

0x32bit commented 2 years ago

Already turn it on but nothing happened Here my website : https://meowcode.pw/blog/how-to-setup-hugo-jp/

If click share button in blog it still dont show the url it s just the directory And this is the repo https://github.com/MeowProject/hugo-web

divinerites commented 2 years ago

Problem is :

{{ $url := printf "%s" .Permalink | absLangURL }}

do not gives you absolute URL but relative one. Not sure why.

`

tfsomrat commented 2 years ago

Hello @thesky03

You are using an env_variable for baseURL when using netlify. so you need to remove this line HUGO_BASEURL = "/" from netlify.toml at line 8.

0x32bit commented 2 years ago

Thanks you... Its workss!

tfsomrat commented 2 years ago

Good to know it works. It will be great if you give a star to the repository. thanks