Excellent vid, well explained and very terse and compact delivery! ✋
@tomaszkusmierczyk2236 Жыл бұрын
Thank you for this demo. Preferably each post should have its own set of comments but the way you demonstrated same comments will be shared across all posts. I guess the getJson and JS fetch inside Hugo was the demo purpose though.
@felixal Жыл бұрын
thanks
@felixal Жыл бұрын
I get an Cross-Origin Resource Sharing error in dev console(I am using a cloudefare workers for getupdatedcomments function). Maybe I need to pass a token or set CORS. Hello I inlcuded this in my response header Access-Control-Allow-Origin': '*', works now THANSKs. Will change * to domainname when I deploy.
@VinodKulkarniOnPlus Жыл бұрын
Isn't innerHTML replaced rather than appended?
@marccawood Жыл бұрын
He clears it first then appends in a loop thus appending each comment.