Page 1 of 1
Blog Title
Posted: Mon Sep 17, 2007 10:30 pm
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
Posted: Mon Sep 17, 2007 11:52 pm
by Don Chambers
This is the usual method:
Code: Select all
<title>{$head_title|@default:$blogTitle} {if $head_subtitle} - {$head_subtitle}{/if}</title>
Posted: Tue Sep 18, 2007 12:56 am
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?
Posted: Tue Sep 18, 2007 1:30 am
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.
Posted: Tue Sep 18, 2007 7:15 am
by Lothar
OK. I see. It's simply not what I expected.
Thank you.
Lothar Geyer