📣 The collaborative blog.
- Fork this repo to your account
- Duplicate one of the Rmarkdown file of a blog post already written in
/content/posts
- Rename this new file
- Open
blog.Rproj
in R and then open your new file - Edit your new blogpost (the
Rmd
file) as you want - Run
blogdown::serve_site()
to see it locally - Run
blogdown::build_site()
- Once you're satisfied, close R and R studio.
- Important steps:
- Go to
/docs/categories/r
and openindex.xml
with a notepad. Search for all the/blog/blog/
strings and replace byhttps://easystats.github.io/blog/
if you see that the URLs is relative or just byblog
otherwise.blogdown::build_site()
also changes older files (older blog posts), and create non-working URLs containing/blog/blog/
again - make sure these are fixed to the full website URL. - Make sure all images in your post have absolute paths, and not relative URLs, for example:
https://easystats.github.io/blog/posts/see_presentation_files/figure-html/unnamed-chunk-3-1.png
.
- Publish this new content on a new github branch named
post-uniquepostname
- Do a PR for this branch to be merged into master