distill icon indicating copy to clipboard operation
distill copied to clipboard

Utterance comments showing up on listing pages after building the site

Open EllaKaye opened this issue 3 years ago • 0 comments

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.

EllaKaye avatar May 11 '21 14:05 EllaKaye