forked from ringcentral/slate
-
Notifications
You must be signed in to change notification settings - Fork 159
Adding meta tags to your site
Matthew Peveler edited this page May 31, 2021
·
1 revision
Slate supports specifying <meta>
tags to the site by modifying your index's YAML front matter. Here, you can specify a meta
key, and underneath a list of dictionaries to define the meta tags to be included in your site.
For example, if you wanted to add a description and keywords meta tags, you would include the following:
meta:
- name: description
content: Documentation for the Kittn API
- name: keywords
content: Kittn,API,Documentation
An example of usage can be seen here.
Please note, slate automatically sets the following meta tags:
<meta charset="utf-8">
<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
If you wish to change these, you will need to modify the source/layouts/layout.erb
file.