distill
distill copied to clipboard
Utterance comments showing up on listing pages after building the site
Hello,
I have enabled utterances comments on my site, following the guidance in this blogpost, but am getting some unexpected/possibly glitchy behaviour after I build the site.
I have the following in my _site.yml
and my utterances.html file is here, a tiny tweak on Miles McBain's.
output:
distill::distill_article:
includes:
in_header:
- _includes/utterances.html
If I just knit posts, everything works as expected, but as soon as I build the site either using the 'Build Website' button in RStudio or using rmarkdown::render_site
, the utterances comment box appears on the listings pages for my posts and talks. I raised this with Miles in this issue and he thought it was something glitchy. I have a workaround (unstaging the chunks where the script gets added to _site/posts.html
and _site/talks.html
before committing) but it's a bit clunky.
I previously mentioned this issue in a comment on #295 , but have been advised by @apreshill to open a new, separate issue for it.