Welcome to the Tutbig tutorial today I will show you How to Create a Sitemap Page in Blogger Blog or how to create sitemap page in blogger blog step by step. Sitemap is our site structure when we create Sitemap and add our blog then our visitor can find their post which they want.
Step 2: First we write page title " Sitemap " then click HTML button and Paste the Code in content area >> rename blog name then click Publish button.
Step 3: We click the view button and see this SITEMAP post.
Copy the SITEMAP Code:-
<script type="text/javascript">Note:- We Replace Highlight URL With Blog URL
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>
<br />
<ul>
<script src="https://your-blog-name.blogspot.com/feeds/posts/default?orderby=published&alt=json-in-script&callback=showrecentposts&max-results=999"></script>
</ul>
I hope you enjoy this Post.How to Create a Sitemap Page
Share This :
comment 0 comments
more_vert