Page 1 of 1

Where to put the site metadata

Posted: Mon Sep 01, 2008 8:01 pm
by shovals
I'm looking for the place to set my site's meta data.
Is it on the template "index.tpl" file?
Usually, the meta data is in the head section. is it the same here?
Please give me some guidance.

This is an example of my template head section:

Code: Select all

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{$lang}" lang="{$lang}">
<head>
    <title>{$head_title|@default:$blogTitle} {if $head_subtitle} - {$head_subtitle}{/if}</title>
    <meta http-equiv="Content-Type" content="text/html; charset={$head_charset}" />
    <meta name="Powered-By" content="Serendipity v.{$head_version}" />
    <link rel="stylesheet" type="text/css" href="{$head_link_stylesheet}" />
    <link rel="alternate"  type="application/rss+xml" title="{$blogTitle} RSS feed" href="{$serendipityBaseURL}{$serendipityRewritePrefix}feeds/index.rss2" />
    <link rel="alternate"  type="application/x.atom+xml"  title="{$blogTitle} Atom feed"  href="{$serendipityBaseURL}{$serendipityRewritePrefix}feeds/atom.xml" />
{if $entry_id}
    <link rel="pingback" href="{$serendipityBaseURL}comment.php?type=pingback&entry_id={$entry_id}" />
{/if}

{serendipity_hookPlugin hook="frontend_header"}
</head>

-----------------------------
# my site - http://www.fazaza.com

Re: Where to put the site metadata

Posted: Mon Sep 01, 2008 8:09 pm
by yellowled
shovals wrote:I'm looking for the place to set my site's meta data.
Is it on the template "index.tpl" file? Usually, the meta data is in the head section. is it the same here?
Basically: Yes.

But you might rather want to use the Event-Plugin "HTML META-Tags" (serendipity_event_metadesc) or "HTML-Code inside head (HTML-Head Nugget)" (serendipity_event_head_nugget) (plus maybe "HTML Link Metatags" (serendipity_event_linktoolbar)) for this - usually, using a plugin is much easier and less prone to errors than fiddling around with .tpl files :)

YL

Thanks

Posted: Tue Sep 02, 2008 10:55 am
by shovals
Ok. Got it. Thanks.