A little while ago I thought it would be
nice to have a Table of Contents on my Blog. So I experimented a bit on
how this could be done without a lot of hacking, and also without
outside help such as del.icio.us.
Ramani has some interesting hacks, and 2 of them I combined into a new one.
If you want to list all your posts in one page, you can use the following url:
http://yourblog/search/label/?max-results=100
Is it as simple as that?
Yes it is!
The
max-results is limited to 100 results. This is a Blogger server-side
restriction. So it will give a TOC for only the 100 latest posts.
If
we want to display only post titles we have to do a little more
hacking, but Ramani has explained how to do this on archive pages. I
just applied this to label pages.
Edit your template, find the Blog widget, and replace the entire main-includable with this txt-file. Save your template.
Add the url to a convenient place in your menubar or sidebar, and ready you are.
No comments:
Post a Comment