Log in Sign up

Hide Cusdis comments

Hi! I've setup Cusdis comments on my blog by adding their widget in my entry.html file.

I have a standalone page that acts as a landing page for a newsletter of this blog and I'd like the comments to be hidden on this page. I've tried declaring "Comments: no" in that page's metadata, but it didn't work.

Is there a way to have Cusdis be understood by the markdown metadata?


a year ago, 5 replies   developers   Edit question

Wrap the Cusdis widget in your entry.html file with the following:

{{^entry.metadata.comments}}
... embed for Cusdis here...
{{/entry.metadata.comments}}

Does that solve the issue?

Answered a year ago · Edit answer

That does the trick, thank you so much for your quick help, have a great day!

Answered a year ago · Edit answer

Hi. I was playing with cusdis tonight and wanted to get rid of the comments widget on my pages but I think I am putting the parts above in the incorrect places around the cusdis widget. Can you copy and paste what the entry.html file for this part looks like for me?

Answered a year ago · Edit answer

To hide comments on all pages, try this instead:

{{^entry.page}}
... embed for Cusdis here...
{{/entry.page}}
Answered a year ago · Edit answer

Thanks! Works perfectly for me with my blog pages.

Answered a year ago · Edit answer