The example file you provided looks okay to me, and I don't think the error came from that file. Do you have the full source of the website anywhere? Have you tried the dev version of blogdown?
remotes::install_github('rstudio/blogdown')
I believe the issue should be fixed now if you install the dev version. Please let me know if that's not the case. Thanks!