Hello blogdown stackoverflow community!
I have been recently migrating my personal GitHub/Jekyll blog (https://blogs.nopcode.org/brainstorm) over to Blogdown/Netlify, but I'm a bit confused by the _redirects
and config.toml
url routing business.
I have read in detail the official blogdown and netlify documentations.
As well as Yihui's recommendations on good permalink hygiene
Unfortunately, no matter how many sensible changes I try (essentially on config.toml
and _redirects
), I cannot successfully migrate from Jekyll since:
- Visiting https://blogs.nopcode.org/brainstorm results in all blogpost links rendered as
https://blogs.nopcode.org/brainstorm/brainstorm/2017-09-01-blogpost-etc
(twobrainstorm
's in the URL instead of just one). I would like all my blogposts to link tohttps://blogs.nopcode.org/brainstorm/2017-09-01-blogpost-etc
(just one brainstorm). Right now I'm doing a URL rewrite so that when a user clicks on one of thosebrainstorm/brainstorm
links, it gets rewritten as simplybrainstorm
... clearly suboptimal. - I have to move parts of the theme (js/images/css/etc..) under
static/brainstorm/
in order for theme assets to load and find those URLs.
Here is the repo of my blog, should you find obvious flaws in it:
https://github.com/brainstorm/brainblog
And a string of changes I tried chasing an acceptable configuration without too many contortions:
https://github.com/brainstorm/brainblog/commits/master
That all being said, I find Hugo/blogdown super fast and the RStudio Addins menu/interface super handy to make quick changes on blogposts :)
Thanks much in advance!