Page 1 of 1
Customize web page title to include topic?
Posted: Mon Dec 06, 2010 3:18 pm
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
Re: Customize web page title to include topic?
Posted: Mon Dec 06, 2010 4:30 pm
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
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
Re: Customize web page title to include topic?
Posted: Tue Dec 07, 2010 8:04 pm
by davidbiesack
yellowled wrote:
Check /templates/YOUR_TEMPLATE/index.tpl. There's a line
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.
Re: Customize web page title to include topic?
Posted: Tue Dec 07, 2010 9:08 pm
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