Do Not Leave Your Typo Title Blank

Posted by Scott Tue, 06 Mar 2007 17:13:00 GMT

For SEO reasons, you want all of your blog pages to have descriptive title tags. When using Typo’s default theme, the title tag for your posts is the name of the post. That’s a good thing. The title tag for the homepage of your Typo blog though is pulled from whatever you put in Blog Settings “Blog Name”.

Some Typo users leave that blank though because they do not want a blog name displayed in the header. Maybe they replace the header with a custom graphic. This is a mistake, because search engines then cannot pick up on your blog’s title.

Instead, you can modify the default theme to retain the title tag, but not show it in the header by changing layouts/default.rhtml (or by creating a new theme).

The change that worked for me is:

change:

      <div id="header">
        <div id="logo">
          <h1 id="sitename"><%= link_to config_value('blog_name'), { :controller => '/' } %></h1>
          <h2 id="subtitle"><%= config_value('blog_subtitle') %></h2>
        </div>
      </div>
to:

      <div id="header">
        <div id="logo">
        </div>
      </div>

Comments

(leave url/email »)