A note from the authors: Some of the information and instructions in this book are now out of date because of changes to Hugo and the blogdown package. If you have suggestions for improving this book, please file an issue in our GitHub repository. Thanks for your patience while we work to update the book, and please stay tuned for the revised version!

In the meantime, you can find an introduction to the changes and new features in the v1.0 release blog post and this "Up & running with blogdown in 2021" blog post.

— Yihui, Amber, & Alison

Chapter 1 Get Started

在本章中,我们将展示如何使用 blogdown 从头开始创建一个简单的网站。该网站将包含一个 home page、一个 “About” page、一个 R Markdown post 和两个 plain Markdown posts。您将学习使用 blogdown 创建网站的基本概念。

我们建议将 RStudio IDE 与 blogdown 结合使用,因为 R 包中有许多内置功能可供 RStudio 用户使用,但这不是必需的。使用 RStudio IDE 将使此工作流程中的某些步骤变得更容易,但您可以自由使用任何编辑器。