SEO

27th September 2017 by Pedr Browne

151 Words / 1 Minute Read

Page Metadata

Every page will include the following metadata tags:

<title></title>
<meta name="description" content=""/>
<meta name="keywords" content=""/>

Non-Generated Pages

For pages that are not generated using a template, i.e.. all pages in the pages/ directory, metadata is defined in site-config.js in its metadata fields.

Generated Pages

For pages that are generated, i.e. all pages in the templates/ directory, metadata is defined in the index.md file’s frontmatter for the page.

Hybrid Pages

Tags and categories pages use a combination of text defined in site-config.js and the name of the tag or category.

Robots.txt

A robots.txt file is generated automatically for your site with the following configuration:

Sitemap: `http://example.com/sitemap.xml`,
User-agent: *
Allow: /

Google Analytics

If you add a tracking code to the seo.googleTrackingID field of site-config.js, Google’s tracking code will be included in your pages.

Sitemap

A sitemap is automatically generated to /sitemap.xml for your site every time it is built, meaning it will always be up-to-date. The sitemap uses the site.url field in site-config.js.


Plugins used