|
blog.description |
|
blog.description is a string variable containing the description of the blog. This is empty if no description has 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 blog description into the Site Description field, located in the Blog Attributes section of the General Settings page of the Settings section.
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.description escape=html}}
For example, if the blog description is "This blog is all about rock & roll", the above tag would be rendered as:
This blog is all about rock & roll
In the default base template, blog.description is used in a <meta> tag providing a description of the blog, as shown below:
<head>
[other <head> contents here]
<meta name="Description" content="{{var name=blog.description escape=html}}">
[other <head> contents here]
</head>
Example
In the example below, the blog description is displayed below the heading What's this all about?:
<h2>What's this all about?</h2>
{{var name=blog.description escape=html}}