|
blog.keywords |
|
blog.keywords is a string variable containing the keywords for use by search engines to index the blog. This is empty if no keywords have been entered.
It can also be used as a boolean variable; it is true if it contains a value.
The blog administrator can enter the keywords into the Search Keywords field, located in the Blog Attributes section of the General Settings page of the Settings section. Keywords are typically separated by commas.
Since the description may contain characters that need to be "HTML-escaped", it is best to use it in var variable form and specifying that characters should be "escaped" as needed:
{{var name=blog.keywords escape=html}}
For example, if the blog keywords are "rock & roll, Šopyright", the above tag would be rendered as:
rock & roll, ©opyright
In the default base template, blog.keywords is used in a <meta> tag providing keywords for search engines, as shown below:
<head>
[other <head> contents here]
<meta name="Keywords" content="{{var name=blog.keywords escape=html}}">
[other <head> contents here]
</head>
Example
In the example below, the blog keywords are displayed below the heading A few of my favorite things:
<h2>A few of my favorite things</h2>
{{var name=blog.keywords escape=html}}