Hugo SaaS Integration
I'm adding Talkyard to a Hugo site and haven't been able to display comments. At the bottom of this entry:
you can see the Comments powered by... however, there isn't anything else, such as a comment box.
I've no doubt I haven't integrated Talkyard correctly, however I've run out of things to change.
- 6 回复
- KajMagnus @KajMagnus2021-06-11 04:31:41.728Z
Hi Lief, I had a look at the page, and in the HTML source, there's this:
However those two
<script>...</script>lines instead needs to be, in your case:
<script>talkyardServerUrl='https://wellys.talkyard.net';</script> <script async defer src="https://c1.ty-cdn.net/-/talkyard-comments.min.js"></script>
- LLief Koepsel @lkoepsel
Thank you, KajMagnus. That points me in the right direction. I moved the params, up out of a comments block from the theme and made a little progress...
I'm now getting a string of errors in JS, such as this one:
Blocked a frame with origin "https://wellys.talkyard.net" from accessing a frame with origin "https://wellys.com". Protocols, domains, and ports must match.
- KajMagnus @KajMagnus2021-06-13 22:13:12.352Z
I had a look, it seems you've configured things correctly.
I'll have a look at this tomorrow. I think there might be a problem when Approval Required is combined with embedded comments.
Looking in Dev Tools, I noticed that Talkyard incorrectly sends a Redirect response to a login page, instead of showing the comments.
- KajMagnus @KajMagnus2021-06-14 07:47:37.218Z
Hi again Lief @lkoepsel , if you disable this setting:
New users need to be approved by staff before they can do anything more than just reading.
then it should work. You can do that in the Admin Area, the Settings | Signup and Login tab:
https:// your Ty site /-/admin/settings/login. (Or I can do that, if you want.)
The problem is that currently Approve users also means "login required" — I need to change that (in a backwards compatible way, so won't be any surprises for already existing sites that maybe relies on this).
(Currently, because Approve Users is enabled, Ty tries to redirect the blog visitors to a page where they can log in — instead of showing the comments.)
- LLief Koepsel @lkoepsel
Yes! It worked!
The buttons "Reset to Default" are very handy for backing back out of changes. I went ahead and reset many of my settings to default and I'll change them as I see issues or a need to change.
- KajMagnus @KajMagnus2021-06-17 03:04:15.390Z
Ok I'm glad it worked :- )
I went ahead and reset many of my settings to default
(Oh I think it's just that one specific setting that has an unclear / actually-slightly-misleading description (I'll add a note now about fixing that). The others should work fine)
(I marked this topic as done now b.t.w.)
- @KajMagnus marked this topic as Done 2021-06-17 03:04:48.407Z.