# Adding a site title
The simplest addition to config.js is the title
attribute.
You do it by adding a YAMLtitle
attribute to the
home page.
First, let's take a look at a simple site with no config.js
at all:
The README.md for such a site would insert YAML front matter like this:
# file README.md
---
home: true
heroText: Springfield Dim Sum
heroImage: /img/springfield-dim-sum-800px.png
tagline: Healthy, Delicious Dim Sum 7 Days a Week!
actionText: See our Menu →
actionLink: ./menu.md
features:
- title: Parking
details: Plenty of free parking at night and free validation during the busin
---
- Now create the file
/.vuepress/config.js
with the following contents:
# file /.vuepress/config.js
module.exports = {
title: "Dim Sum!"
}
In a moment you'll see a change:
# What the site title does
The site title is added to all pages and, in the default theme, is added to the top navbar.
# Reference
See the VuePress title documenation.