[pmwiki-users]SEO: Avoiding Headings in the SideBar

H. Fox haganfox at gmail.com
Mon Aug 15 17:54:04 CDT 2005


On 8/15/05, Patrick R. Michaud <pmichaud at pobox.com> wrote:
> To disable the ! markup, but leave !!, !!!, etc.:
> 
>     Markup('^!', 'block',
>       '/^(!{2,6})\\s?(.*)$/e',
>       "'<:block><h'.strlen('$1').PSS('>$2</h').strlen('$1').'>'");

This brings to mind a question. (Surprised?  :-) )

I see two drawbacks to $Title-as-H1:

* The H1 heading would be absent in (:notitle:) pages.
* The H1 heading can't be other than the $Title (or $Ttitlespaced)

I can work around these if I can detect, in skin.php
* if there's a (:notitle:) in the page
* if there's a H1 in the page

Like

    if (there is a (:notitle:) in the page) {
      Do something.
    } else {
      Do something else.
    }

and

    if (there's an H1 in the document) {
     Do something.
    } else {
      Do something else.
    }

My goal is to permit

1) misuse of H1 headings :-)
2) "proper" use of an H1 heading only once in a page (not by
    force -- see #1), otherwise the $Titlespaced is a H1 heading
3) having an H1, even in (:notitle:) pages without any H1markup

I think this, combined with no headings in the sidebar, would
*greatly* enhance SEO automatically without affecting pages'
appearance in the browser.

Hagan




More information about the pmwiki-users mailing list