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 showrecentpostsundefinedjson) {
for undefinedvar i = 0; i < numposts; i++) {
var entry = json.feed.entry[i];
var posttitle = entry.title.$t;
var posturl;
if undefinedi == json.feed.entry.length) break;
for undefinedvar k = 0; k < entry.link.length; k++) {
if undefinedentry.link[k].rel == 'alternate') {
posturl = entry.link[k].href;
break;
}}
posttitle = posttitle.linkundefinedposturl);
if undefinedstandardstyling) document.writeundefined'<li>');
document.writeundefinedposttitle);}
if undefinedstandardstyling) document.writeundefined'</li>');
}
</script>
<ul>
<script src="http://www.rnhckr.com/feeds/posts/default?orderby=published&alt=json-in-script&callback=showrecentposts&max-results=999"></script> </ul>
- Replace www.rnhckr.com with your own blog URL.
- Click Publish button.
- That's it.
If you want to show posts from specific labels, then instead of the above code, use below code.
<script type="text/javascript">
var numposts = 100;
var standardstyling = true;
function showrecentpostsundefinedjson) {
for undefinedvar i = 0; i < numposts; i++) {
var entry = json.feed.entry[i];
var posttitle = entry.title.$t;
var posturl;
if undefinedi == json.feed.entry.length) break;
for undefinedvar k = 0; k < entry.link.length; k++) {
if undefinedentry.link[k].rel == 'alternate') {
posturl = entry.link[k].href;
break;
}}
posttitle = posttitle.linkundefinedposturl);
if undefinedstandardstyling) document.writeundefined'<li>');
document.writeundefinedposttitle);}
if undefinedstandardstyling) document.writeundefined'</li>');
}
</script>
<ul>
<script src="http://www.rnhckr.com/feeds/posts/default/-/Label%20Name?orderby=published&alt=json-in-script&callback=showrecentposts&max-results=999"></script> </ul>
- Replace www.rnhckr.com with your blog URL and Label%20Name with your label name.
Remember: If you are using single word as your label name like "SEO" then put SEO there but if you are using more than one word, then put %20 between each word.
For example: if the label name is Blogger Tricks, then put Blogger%20Tricks.
The label name is case sensitive, so take care of it. Means don't put seo in the place of SEO. The code will not work in that case.
This was the little trick about how to make HTML sitemap page in Blogger for particular label or for all labels. I hope you guys like this tutorial. Feel free to leave comment below this post to share your views and feedback. Thanks and Happy Blogging!
You Also Like:
How To Host File On Google Code? For Blogger [Include MIME Type] TutorialMake Headline News In Blog & Site'sCustom Robots.Txt Setting For Your Blog
Customize Your Blog/SiteSearch Using Google Custom Search EngineAdd A Facebook Invite Friends Link To Your BloggerSite
0 comments:
Post a Comment