a template for creating a website in R Markdown
- Fork this repository.
- Turn on hosting via GitHub Pages
- Settings -> GitHub Pages -> Source -> select “master
branch
/docs
folder”
- Settings -> GitHub Pages -> Source -> select “master
branch
- View your website at given URL
- Change content as necessary
- Modify existing
.Rmd
files - Add new files as necessary
- Update
_site.yml
as necessary
- Modify existing
- Render entire site by running:
rmarkdown::render_site("www")
- Commit and push changes.
- Make sure to commit changes to both the
.Rmd
files inwww/
and the.html
files indocs/
- Make sure to commit changes to both the
- Create a new
.Rmd
file. - Write the new blog post in the new
.Rmd
file. - Render the website.
- Commit and push.
Please note that all pages hosted via GitHub Pages are public on the internet, even if the repository is private!!
However, there are few steps you can take to reduce the chance of your blog post going viral. Please note that these are security by obscurity techniques that are NOT robust.
- Put it on the deep web. Most search engines crawl the web. If there are no links to a URL, then crawlers will never find it. Just don’t link to your blog post anywhere. [Note: it’s possible that the GitHub Pages service might index all pages. ]
- You can at least make the URL harder to remember or copy-and-paste by pading the name with a random MD5 hash.
obscure_filename <- paste0(
"post_",
digest::digest(runif(1), algo = "md5"),
".Rmd"
)
obscure_filename
#> [1] "post_60cd546dc6eac59c385073535502e5b2.Rmd"
You might consider writing your resume in pagedown and adding it to your website. Like these:
- R Markdown websites
- Bootstrap 3.3 components
- Bootswatch themes
- Font Awesome icons
- bsplus package for additional Bootstrap components
- 📣: bslib library for Bootstrap theming