I was upset that I can’t set up Rmarkdown files correctly in my blog using even theme. Therefore, I changed it to a new minimalist theme: hugo-tanka today. There are some tricks, so I wrote down what I did.
- Start a new blogdown R project in RStudio with the theme I want:

-
Move all my posts in the
jhblog\content\postto the new destinationjhblogv2\content\blog. -
Remove <!–more--> from the posts. This sentence has some wield behaviour on the new theme. So I deleted them from all the posts.
-
Set up the Git and the Github repo.
-
Delete the old blog site on Netlify, so I can keep the same URL.
-
Set up new Github repo in Netlify.
-
When setting up the Netlify, make sure to add HUGO version to the same as the local. You can do this by add a
New VariableasHUGO_VERSIONand set to0.83.1 -
Change site name in Netlify. The name will become the prefix for the website. For example, I set the site name to
jhuang, then my blog website becomesjhuang.netlify.app. -
In
config.yaml, change thebaseurl: https://jhuang.netlify.app/. I don’t have to do this for the Even theme, but necessary for the hugo-tanka theme. -
Modify
about.mdfor my personal introduction page. -
Choose a good flavicon from https://favicon.io/favicon-generator/ and replace the
jhblogv2\static\images\favicon1.png. -
Now you should be good to go!