template tags


template tags for the head section

The tags described below are all used within the <head> and </head> tags at the top of your blog's template.

tag

description

<$BlogSiteFeedLink$>

generates a link tag on your page that makes browsers like Firefox aware of your site feed and its URL:

<link rel="service.feed" type="application/atom+xml" title="Knowing Beans" href="http://knowingbeans.blogspot.com/atom.xml" />

<$BlogEncoding$>

outputs the character encoding that you chose in the Encoding field on the Settings | Formatting page

<BlogSiteFeed>...</BlogSiteFeed>

a conditional tag whose contents are only output if you've selected Yes for Publish Site Feed on the Settings | Site Feed page

<$BlogSiteFeedUrl$>

generates the URL for your blog site feed (see page 108); must be within opening and closing <BlogSiteFeed> tags to work properly. Note the lowercase rl.

<$BlogMetaData$>

generates an entire section of meta data, including:

a line declaring the character encoding, as specified in the Encoding field on the Settings | Formatting page:

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

a line telling Microsoft not to convert parts of your page into advertising links toward their site:

<meta name="MSSmartTagsPreventParsing" content="true" />

a line identifying Blogger as the program that created the file:

<meta name="generator" content="Blogger" />

if you have selected No for Add your Blog to our listings (page 106), part of the meta data will be <meta name="ROBOTS" content="NOINDEX,NOFOLLOW" />

if you have selected Yes for Publish Site Feed (page 108), part of the meta data will look something like <link rel="alternate" type="application/atom+xml" title="Knowing Beans" href="atom.xml" />.

<$BlogPageTitle$>

Most often used within <title> and </title> tags inside the head section of your blog's template.

It is one of Blogger's conditional or smart tags that varies according to where it appears.If the page being displayed is your main blog page, the title is, for example, Knowing Beans. If the page is an archive page, you'll get the blog title followed by the date information, something like Knowing Beans - August, 2004. If the page is a post page, you'll get the title followed by the title of the post, as in Knowing Beans - Lots of reading.


template tags for the profile

The tags described below are used to take information from your profile and display it on your blog page.

tag

description

<$BlogOwnerFirstName$>

outputs the contents of the First Name field (page 61)

<$BlogOwnerLastName$>

outputs the contents of the Last Name field (page 61)

<$BlogOwnerEmail$>

outputs the contents of the Email Address field (page 61)

<$BlogOwnerFullName$>

outputs the contents of the First Name field followed by a space and the contents of the Last Name field

<$BlogOwnerPhotoUrl$>

outputs the contents of the Photo URL field (page 62); notice the lowercase rl at the end of the tag

<$BlogOwnerProfileUrl$>

outputs the URL of the profile page itself; notice the lowercase rl at the end of the tag

<$BlogOwnerNickname$>

outputs the contents of the Display Name field (page 61)

<$BlogOwnerLocation$>

outputs the contents of the City/Town field, followed by a space and a comma, the contents of the Region/State field, another space and comma, and the contents of the Country field (page 63). If any of the fields are omitted, the corresponding data, spaces, and commas disappear.

<$BlogOwnerAboutMe$>

outputs the contents of the About Me field (page 64)




Publishing a Blog with Blogger
Publishing a Blog with Blogger: Visual QuickProject Guide (2nd Edition)
ISBN: 0321637526
EAN: 2147483647
Year: 2004
Pages: 135

Similar book on Amazon

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net