Results 1 to 10 of 25

Thread: Technical tips on blogging

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #12
    just me duncan drennan's Avatar
    Join Date
    Jun 2006
    Location
    Cape Town
    Posts
    2,642
    Thanks
    119
    Thanked 94 Times in 77 Posts
    Yay! Blogger has finally added a blog.pageName tag so that you can have better SEO by placing your posts name before your blog name in your page titles (without any crazy hacks).

    You can do something like this,

    Code:
      <b:if cond='data:blog.pageType == &quot;item&quot;'>
        <title><data:blog.pageName/> - YOUR BLOG NAME</title>
      <b:else/>
        <b:if cond='data:blog.pageType == &quot;archive&quot;'>
          <title>Archives <data:blog.pageName/> - YOUR BLOGS NAME</title>
          <meta CONTENT='Archives of YOUR BLOGS NAME.' name='Description'/>
        <b:else/>
          <title><data:blog.pageTitle/></title>
          <meta CONTENT='YOUR DESCRIPTION META CONTENT' name='Description'/>
        </b:if>
      </b:if>
    Replace the <title><data:blog.pageTitle/></title> code with this code above, and change the names to your blog's names. You can add (and take away) whatever you like.

    With blogger and 'item' is a single post, 'archive' are archive pages. In the example above it always falls through to the default Blog Name page title.

    The example above places post pages title first, followed by the blog's name. It also places different meta content description tags on the different types of pages.

    @Chatmaster: is it better to have no description meta content, or lots of duplicate description meta content across pages?
    Last edited by duncan drennan; 13-May-08 at 08:31 PM. Reason: made a whoops in the code...
    [SIGPIC]Engineer Simplicity[/SIGPIC]
    Turn ideas into products | The Art of Engineering blog

  2. Thanks given for this post:

    Dave A (13-May-08)

Similar Threads

  1. Telkom technical joke?
    By Dave A in forum General Business Forum
    Replies: 21
    Last Post: 02-Jun-06, 10:01 AM

Tags for this Thread

Did you like this article? Share it with your favourite social network.

Did you like this article? Share it with your favourite social network.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •