Replies: 3 comments 8 replies
-
hugo-Papermod has OpenGraph support, so no need for custom stuff. I'll try and update the Wiki with the docs (I see that it's undocumented at present) later tonight. |
Beta Was this translation helpful? Give feedback.
-
I'ved added a PR with documentation #513 |
Beta Was this translation helpful? Give feedback.
-
I also want to add Disqus to my papermod hugo website, but I can't figure it out without doing trial and error. the documentation from hugo and on this repository is not sufficient enough. apparently I need to add a line in the config.yml, is that correct? what i have now how to change it:
and I need to make a change in the comments.html , correct? is that in: it would be nice if you could add this in the wiki or documentation on the papermod website, a nice addition to any blogs/websites |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I want to check 2 aspects of my configuration for correctness. I'm asking here as opposed to the general Hugo forum because I want to make sure there's nothing theme-specific I need to be considerate of.
First, for my Disqus setup, here is what I have done. Note that in general, anything affecting my blog I try to keep as a theme so it stays modularized and I'm not modifying core folders. I'll admit I'm confused on the difference between themes, templates, and modules, but I assume themes are a fine solution here (I see the disqus comments working after all).
I created a single file under
themes/disqus/layouts/partials/comments.html
with the contents:In my
config.yml
I add it in (along with others) like this:Also in my config.yml:
I have done no additional disqus configuration. The disqus help says there's more to set up to make sure links from email notifications and such work, but I am not sure if I need to do that. Does the built in internal template for Disqus do this? What more do I need to set up?
Regarding OpenGraph: I don't really know what it is. I assume it enables links to my site to have a nice "card" preview like you'd see if you pasted it in Discord or something. But I also got the impression that it affects SEO somehow. So I enabled it by using another theme at
themes/opengraph/layouts/partials/head/custom.html
:Is this correct?
I'm really uncertain if there's anything I've just configured wrong on my site, but I guess I'll find out as I go. Thanks for any help.
Beta Was this translation helpful? Give feedback.
All reactions