Skip to content
This repository has been archived by the owner on Apr 30, 2019. It is now read-only.

Latest commit

 

History

History
97 lines (71 loc) · 2.11 KB

Configuration.md

File metadata and controls

97 lines (71 loc) · 2.11 KB

Configuration

Aero requires a config.json file in your root directory.

{
	"title": "My Awesome Site!"
}

Your configuration is incremental. This means you only need to include the settings that you changed. The settings that have not been specified will be loaded from the default configuration.

Members

title

Your public website title. Usually used in layout files and in the manifest.

{
	"title": "My Awesome Site!"
}

domain

The website domain you are using in production.

{
	"domain": "example.com"
}

fonts

A list of Google Fonts. You can also add :bold and :italic to load additional variants of the font.

{
	"fonts": [
		"Open Sans",
		"Open Sans:bold"
	]
}

icons

A list of relative paths to icons you would like to use for your manifest. In the future this list will also be used to select your favicon.

{
	"icons": [
		"images/icons/small.png",
		"images/icons/medium.png",
		"images/icons/large.png"
	]
}

languages

A list of language codes for your website. The first entry is your main language and is also used in the manifest.

{
	"languages": [
		"en",
		"ja",
		"de"
	]
}

redirect

A map of routes that should be redirected to another route (permanently via 301 status code). This is especially useful for SEO to make outdated backlinks behave correctly.

{
	"redirect": {
		"en/frontpage.html": "/",
		"weblog": "/blog"
	}
}

The target URL is directly used as a parameter for the HTTP redirect so it should always be prefixed by a /.

Production vs. Development

Always set the environment variable NODE_ENV to production on your production systems as it will disable LiveReload and improve performance. You can do this by editing /etc/environment or adding the following line to your .profile or .bashrc file:

export NODE_ENV=production