Metadata
Webpages contain hidden elements, or metadata, that tell browsers and search engines what each page is about. To edit a webpage's metadata, open the page for editing and select Edit Metadata from the sidebar.
Surreal CMS makes the following metadata and
Open Graph data available for editing. These
tags are written every time you publish, so any values in the page's source will be replaced. If a tag
isn't present in the page's source, it will be added to the <head> section when
the page is published.
<title><meta property="og:title"> |
The page's title. Used in browser tabs, bookmarks, and search engine results. The
og:title tag is always set to the same value.
|
|---|---|
<meta name="description"><meta property="og:description">
|
The page's description. Often used in search results and previews when sharing. The
og:description tag is always set to the same value.
|
<meta property="og:image"> |
A unique image that represents the page's content. Often used in previews when sharing. |
<meta property="og:type"> |
The type of content the page represents. This is assumed to be website, but if another
value is specified in the source it will be preserved.Note: This value can only be changed in the source editor. |
<meta property="og:url"> |
The canonical URL of the page. This defaults to the page's URL, but if another value is specified
it will be preserved. Note: This value can only be changed in the source editor. |
<meta name="robots"> |
If ticked, this option will tell search engines to not follow and not index the page
(noindex,nofollow). If it isn't ticked, the robots meta tag is removed from the
page, including any value you added yourself.Note: Most search engines honor this value, but it won't take effect immediately and previously indexed pages may take awhile to be removed from a search engine's cache. |
Notice
Support for the keywords meta tag was discontinued in version 7, as it is widely known to be
ignored by Google and other
search engines.
Character encoding
Surreal CMS publishes content using the UTF-8 character encoding. UTF-8 is capable of representing every character in the Unicode character set, including those from many different alphabets.
You should ensure your page is being rendered correctly by including the following meta tag in the
<head> section of your pages.
<meta charset="utf-8">
For your convenience, we'll set the character encoding meta tag to UTF-8 automatically when you publish your pages.
However, sometimes the server overrides this setting and you'll see strange characters appear after publishing. If that happens, refer to this page for a solution.
Surreal CMS reads your files as UTF-8, so make sure they're saved with UTF-8 encoding. Otherwise, special characters may be damaged when you publish.