Build a Website From Scratch
Let's get acquainted with a blogdown website project.
We'll cover the following...
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:
Press + to interact
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 fileconfig.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 ...