I saw this quesiton on this thread but the answer by bep did not solve the problem.

The solution can be found in Yihui Xie’s book of Blogdown .

However, when I tried the block of codes recommended …