Customize web page title to include topic?

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
davidbiesack
Posts: 2
Joined: Mon Dec 06, 2010 3:14 pm

Customize web page title to include topic?

Post by davidbiesack »

When my blog is published, the web page title is the blog name + description from the configuration.
This means that Google search results do not include the title from the specific post,
so Google or other search engine results are not as helpful. How can I configure my blog to
include the post's title in the blog entry instead of the static general blog name/description?
I'd like the page title to be the blog name + the entry/post title.

We're using S9Y 1.4.1
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: Customize web page title to include topic?

Post by yellowled »

davidbiesack wrote:How can I configure my blog to include the post's title in the blog entry instead of the static general blog name/description? I'd like the page title to be the blog name + the entry/post title.
Check /templates/YOUR_TEMPLATE/index.tpl. There's a line

Code: Select all

<title>...</title>
What's inbetween those tags in your index.tpl?
davidbiesack wrote:We're using S9Y 1.4.1
You should update, we're at 1.5.4 now.

YL
davidbiesack
Posts: 2
Joined: Mon Dec 06, 2010 3:14 pm

Re: Customize web page title to include topic?

Post by davidbiesack »

yellowled wrote: Check /templates/YOUR_TEMPLATE/index.tpl. There's a line

Code: Select all

<title>...</title>
What's inbetween those tags in your index.tpl?
I don't manage our blog infrastructure, so I've asked our IT folks to help with that.

What should go there? http://www.s9y.org/44.html#A3 says "For various variables, refer to http://www.s9y.org/102.html but that pages does not define many variables, just css classes.
It links to a forum topic but the link http://www.s9y.org/forums/viewtopic.php ... highlight= is bad (404). Perhaps the person who maintains our style template will know what to do.
You should update, we're at 1.5.4 now.
YL
I'd love to, but it's not up to me. Another group runs that, supporting dozens of bloggers.
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: Customize web page title to include topic?

Post by yellowled »

davidbiesack wrote:What should go there?
The standard line for this in /templates/default/index.tpl is

Code: Select all

<title>{$head_title|@default:$blogTitle} {if $head_subtitle} - {$head_subtitle}{/if}</title>
which should produce what you're looking for. $head_title should be the entry title in single entry view, $head_subtitle should be the blog title in that view.

YL
Post Reply