Blog Title

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
Lothar
Regular
Posts: 54
Joined: Fri Aug 03, 2007 9:06 pm
Location: Germany
Contact:

Blog Title

Post by Lothar »

Each blog has a title and a subtitle, shown in the header frame. I suppose title and subtitle should be included in the <title> tag in the html source. However, on my blog the title tag includes the blog title twice, seperated by a dash.

Yes, I use my own index.tpl. Which file should I use to check differences?
(This problem raises on every update: which files have been modified and what are the differences?)

Lothar Geyer
Don Chambers
Regular
Posts: 3659
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Post by Don Chambers »

This is the usual method:

Code: Select all

<title>{$head_title|@default:$blogTitle} {if $head_subtitle} - {$head_subtitle}{/if}</title>
=Don=
Lothar
Regular
Posts: 54
Joined: Fri Aug 03, 2007 9:06 pm
Location: Germany
Contact:

Post by Lothar »

As this is the same code as in my index.tpl and as I did not found this behaviour on other serendipity blogs: any suggestions where I should search for this error?
Don Chambers
Regular
Posts: 3659
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Post by Don Chambers »

This does not look like an error per se. You are using a static page for your start/front page. Your html title is this:

<title>TelMarkt Entwickler-Blog - TelMarkt Entwickler-Blog</title>

The first piece is the title, which in this case is the static page "headline". The second piece (after the dash) is your actual blog name. This is how the static page plugin renders its pages... headline as the title, blog name as the subtitle. You appear to have the headline suppressed in the actual static page content. You COULD change the headline of that static page so that it is the same as your blog's description if you like.

When you are on a page with an actual entry (ie http://blog.telmarkt.de/archives/2-Stat ... anung.html), the title becomes the entry title, and the subtitle is the blog name.

When truly on your start page (ie, not using a static page as your frontpage) - the title is just your blog name.
=Don=
Lothar
Regular
Posts: 54
Joined: Fri Aug 03, 2007 9:06 pm
Location: Germany
Contact:

Post by Lothar »

OK. I see. It's simply not what I expected.

Thank you.

Lothar Geyer
Post Reply