Search⌘ K

Build a Website From Scratch

Explore how to create a personal website project using R and blogdown. Understand the project directory structure, configure site settings, update base URLs, and make essential edits. This lesson helps you build and deploy your website using GitHub and Netlify, with hands-on practice and quizzes to reinforce learning.

Project directory structure

A blogdown application project consists of numerous files that build the website. We can see some of the notable files and folders in the directory tree below:

Markdown
my-website/
├─ config/
│ ├─ _default/
│ │ ├─ languages.toml
│ │ ├─ menus.en.toml
│ │ ├─ params.toml
├─ content/
│ ├─ english/
│ │ ├─ post/
│ │ │ ├─ post1.md
│ │ ├─ _index.md
│ │ ├─ about.md
├─ static/
│ ├─ favicons/
│ ├─ images/
├─ themes/
│ ├─ anatole/
│ │ ├─ assets/
│ │ │ ├─ css/
│ │ │ ├─ js/
│ │ │ ├─ scss/
├─ config.yaml
  • The config/ directory and the configuration file config.yaml are used to specify different settings for the website, including the title, language and author.

  • The main content of the file goes into the content/ directory. This content can be in the form of pages or posts in ...