Where to put the site metadata

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
shovals
Regular
Posts: 26
Joined: Sun Jul 20, 2008 10:54 am
Contact:

Where to put the site metadata

Post 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
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: Where to put the site metadata

Post 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
shovals
Regular
Posts: 26
Joined: Sun Jul 20, 2008 10:54 am
Contact:

Thanks

Post by shovals »

Ok. Got it. Thanks.
Post Reply