Hi list,
I was working on my typo blog yesterday evening and noticed 2 little
things that may help typo blogs to be better referenced
1/ in the field, put the post title before the blog
title.
You just need to replace the page_title function in app/helpers/
articles_helper.rb by
def page_title
if @page_title
# this is where the page title prefix (string) should go
@page_title + " - " + (this_blog.title_prefix ? “#
{this_blog.blog_name || “Typo”}” : ‘’)
else
this_blog.blog_name || “Typo”
end
end
The second one is to add the categories and archives as links in the
header :
... same for categories
And I was too lazy to dive in the code yet.
Cheers,
Frederic
–
Frédéric de Villamil
“Sadness is just another word for not enough coffee” – Scott Adams
[email protected] tel: +33 (0)6 62 19 1337
http://fredericdevillamil.com
Do either of these things actually work for SEO? Usually the
conventional wisdom about SEO is wrong, and the stuff that goes into
the head tag is getting less and less important. IIRC it seems the
best thing to do is simply have valid HTML markup, with proper tag
hierarchy (i.e. header tags followed by contents).
If “post - blog” is better than “blog - post”, why do so many sites
use the latter?
And putting all categories and archives into the header seems a bit
excessive - that would be adding 20 lines to my header tag, and
again, does it actually do anything?
Kevin B. wrote:
excessive - that would be adding 20 lines to my header tag, and again,
does it actually do anything?
I’m glad to see this for Typo.
The answer to your question … well, I can’t speak for the world but I
can
speak for myself. When I made these changes to my WordPress based Blog
the
links and amount of google and other search engine references did
increase.
Why do many sites use “blogname - post” rather than prioritize the title
of
the post? Perhaps because they haven;'t added the plug in to change it
and
that’s the default ‘out of the box’ or supplied by the hosting provider
and
hence can’t be changed.
As for putting the archive links in the header, this seems a default
with
some WordPress themes. It may seem a bit self referential, but once
again,
speaking from my own experience, when I changed my WordPress based blog
to
use this, the search engines seemed to reference my blog a lot more.
One way to tell - I got a lot more spam!
On Tue, Dec 05, 2006 at 09:31:33AM -0500, Kevin B. wrote:
If “post - blog” is better than “blog - post”, why do so many sites
use the latter?
It’s a UI issuem, not an SEO issue. “post-blog” is a lot easier to read
when a window title is truncated (e.g. crowded windows taskbar).
-Dom
In my experience, if you basically follow the web accessibility
initiative ( Techniques for Web Content Accessibility Guidelines 1.0 ), you’ll
help your site do better on the code side. Google bot is a blind
browser. So start with level 1 (roughly the same as section 508
compliance). You can test for 508 here:
http://bobby.watchfire.com
or
http://www.contentquality.com/Default.asp
Also, at the end of the day, the best thing you can do for SEO is
create great content that gets people linking to certain articles
with keyword linked text. Of course, this could change tomorrow with
an algorithm update.
Semantic markup and good page structure and error free valid xhtml/
css markup are far more important than what you stuff in your
keywords tag.
On Dec 5, 2006, at 9:31 AM, Kevin B. wrote:
excessive - that would be adding 20 lines to my header tag, and
You just need to replace the page_title function in app/helpers/
end
Kevin B.
http://kevin.sb.org
[email protected]
http://www.tildesoft.com
Typo-list mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/typo-list
–
John A.
[email protected]
Meticulous | www.meticulous.com (work)
Honor by August | www.honorbyaugust.com (sound: rock band)
Rotoscope | www.rotoscope.com (sound: rock band)
Boboroshi & Kynz | www.boboroshiandkynz.com (sound: electronic)
Personal Weblog | www.boboroshi.com (play)
“Those who would give up essential Liberty, to purchase a little
temporary Safety, deserve neither Liberty nor Safety.”
- Benjamin Franklin (1706-1790)
Reply of the Pennsylvania Assembly to the
Governor
November 11, 1755
Actualy, it’s one of the advices the SEO company we’re working with
has given us.
It’s related to the fact that having blog title – post makes pages
look the same for the search engine as far as I’ve understood.
Frederic
Le 5 déc. 06 à 17:43, Dominic M. a écrit :
Typo-list mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/typo-list
–
Frédéric de Villamil
“Sadness is just another word for not enough coffee” – Scott Adams
[email protected] tel: +33 (0)6 62 19 1337
http://fredericdevillamil.com
Kevin B. [email protected] writes:
Ok, revision 1318 modifies the prefix setting to allow you to postfix
the page title instead of prefix. Current prefixes will remain
prefixes, so nobody’s blog titles change unexpectedly.
Oi! Not like that it shouldn’t. We certainly shouldn’t be exposing the
fact that it’s implemented as an integer. Here’s a suggestion:
class Content
def html_title
blog.title_prefix + title + blog.title_suffix
end
end
class Blog
def title_prefix
prepend_blog_name? ? "#{blog_name} : " : ‘’
end
def title_suffix
append_blog_name? ? " : #{blog_name}" : ‘’
end
def prepend_blog_name?
title_decoration == ‘prepend’
end
def append_blog_name?
title_decoration == ‘append’
end
end
Then the page_title helper simply becomes:
def page_title
@page.html_title
end
Mmm… fat model/thin controller kicks some serious buttock.
I’m still porting the test suite to rspec or you could expect a patch
to this effect…
Kevin B. [email protected] writes:
What if we’re not looking at a single Content object on the page?
Like, say, the index? Or search results? Then we don’t have a single
Content object for @page that we can call html_title on.
D’oh! Silly me. However:
class Blog
def decorate_title(title_string)
if title_string.blank?
blog_name
else
title_prefix + title_string + title_suffix
end
end
end
module ArticlesHelper
def page_title
if @page_title
h this_blog.decorate_title(@page_title)
elsif @page
h @page.html_title
else
‘Typo’
end
end
end
with other stuff implemented pretty much as written in the earlier
post. The main point is to hide the details of how we know whether
to append or prepend the blog name. I had an idea last night about how
to package Themes as plugins, which should also make it relatively
simple to add theme specific helper methods a the same time. At least,
it seemed simple until I tried to sketch it here; there’s a little
wrinkle that needs a little more thought. I shall get back to you.
What if we’re not looking at a single Content object on the page?
Like, say, the index? Or search results? Then we don’t have a single
Content object for @page that we can call html_title on.