]> sipb.mit.edu Git - ikiwiki.git/blob - doc/todo/Option_to_make_title_an_h1__63__.mdwn
Add patch
[ikiwiki.git] / doc / todo / Option_to_make_title_an_h1__63__.mdwn
1 Currently, the page title (either the name of the page or the title specified with `\[[!meta title="..."]]`) shows up in a `<div class="header">`.  I tend to follow the [w3c guideline recommending the use of h1 for the title](http://www.w3.org/QA/Tips/Use_h1_for_Title); for this purpose, how about an option to make the page title an `<h1 class="header">`, and shift the markdown headings down by one (making # an h2, ## an h3, etc; or alternatively making # equivalent to `\[[!meta title="..."]]`)?
2
3 > The reason I don't use a h1 for the navbar is that while it incorporates
4 > the page title, it's not just a page title, it has the links to parent pages.
5 > I also don't want to get in the business of munging up markdown's semantics. This 
6 > way, # is reserved for h1 if you choose to use headers in your page. --[[Joey]]
7
8 [[done]]
9
10 > For anyone interested, I've written a small plugin called [h1title][] that does the
11 > latter, making `#` (only when on the first line) set the page title, removing it from
12 > the page body. --[[JasonBlevins]], October 22, 2008
13
14  [h1title]: http://code.jblevins.org/ikiwiki/plugins/h1title.pm