0How To Create Secondary Site Map For Blogger (Table Of Contents)?

Posted by Harwinder Kumar at 3/09/2012 Posted in:

Hello bloggers! Before continue, thanks to Abu Farhan for sharing wonderful wonderful javascript. All you must have heard about site map and what it does. Let me clear in brief what is site map? Site Map represents  the hierarchical structure of your blog posts (like table of contents) and make it accessible to crawlers to index your blog/site properly. It allows the users to navigate through the blog/site to find the information they are looking for and for more information click here.

Note: Well in blogger, you don't need to create any site map as Google generates it by own for your blog. You can find out your primary blog's site map here: BLOGURL/feeds/posts/default?orderby=updated. Secondary site map is only for your users not for crawlers.

In this post, I am going to tell about creating a secondary site map for your blog like table of contents from where users can easily navigate through your blog.

For e.g check out my site's secondary site map: http://www.basicsofhacking.com/p/site-map-of-basicsofhackingcom.html

Follow these simple steps:
  • Add the following HTML code in your blog where you want to display it:

    <script style="text/javascript" src="http://www.abu-farhan.com/script/daftarisiblogger/blogtoc-min.js"></script>
    <script src="http://www.basicsofhacking.com/feeds/posts/default?max-results=9999&amp;alt=json-in-script&amp;callback=loadtoc"></script>


    Replace "http://www.basicsofhacking.com" with your blog URL.
  • That's all.
Note: I recommend add it on menu bar of your blog, for adding it on menu bar: create a static page, paste the above script in content area, publish it, then link created page to menu bar.
Hope You Liked It. Receive Latest Posts Directly To Your Email
Get Free Updates:
Click On The Confirmation Link Sent To Your Inbox Or Spam

0 comments so far:

We love to hear from you! Leave us a comment:

© 2014 Learn The Basics Of Ethical Hacking About | Site Map | Privacy Policy | Contact