Sitemap of a blog helps search crawlers to crawl the entire blog properly. It helps to increase our blog crawling and indexing. Previously, I have shared a tutorial about
Creating Sitemap Page for All Labels
MOST READ: Tips on How to Clean Up Disk Space in Windows
If you want to show all of your blog posts at same page then follow below steps one by one.
- Go to your blogger blog.
- Now Navigate to Pages > New Page > Blank Page.
- Switch it to HTML mode
- Paste below code in the post body.
<script type=”text/javascript”>
var numposts = 100;
var standardstyling = true;
function showrecentposts(json) {
for (var i = 0; i < numposts; i++) {
var entry = json.feed.entry[i];
var posttitle = entry.title.$t;
var posturl;
if (i == json.feed.entry.length) break;
for (var k = 0; k < entry.link.length; k++) {
if (entry.link[k].rel == ‘alternate’) {
posturl = entry.link[k].href;
break;
}}
posttitle = posttitle.link(posturl);
if (standardstyling) document.write(‘<li>’);
document.write(posttitle);}
if (standardstyling) document.write(‘</li>’);
}
</script>
<ul>
<script src=”http://www.musbite.blogspot.com/feeds/posts/default?orderby=published&alt=json-in-script&callback=showrecentposts&max-results=999″></script>
</ul>
5. REMEMBER TO CHANGE www.musbite.blogspot.com with your own blog URL.
6. Click Publish button.
7 Done.
0 comments:
Post a Comment