Kode Sitemap HTML - Daftar Isi Blog Berdasarkan Tanggal Publikasi

Romeltea | Follow @romel_tea
Kode Sitemap HTML - Daftar Isi Blog Berdasarkan Tanggal Publikasi



Kode Sitemap HTML - Daftar Isi Blog Berdasarkan Tanggal Publikasi. Sitemap HTML adalah halaman statis berisi daftar postingan blog. Lihat DEMO.

Berikut ini kodenya. Copas di halaman Sitemap blog Anda, pada mode HTML.

Kode Sitemap HTML Tanggal Publikasi


<style>
#w-sitemap-wrapper {font-size:13px}
#w-sitemap-wrapper li {position:relative;padding:.385em 0 .385em 6.923em;border-top:none;border-bottom:1px solid #f6f6f6}
#w-sitemap-wrapper span {position:absolute;left:0;color:#bd8b56}
#w-sitemap-wrapper a {font-weight:bold}
#w-sitemap-loading-msg {height:100px;line-height:100px;text-align:center;font-weight:bold;letter-spacing:1px;font-size:18px;color:#bbbbbb}
#w-sitemap-wrapper ol, #w-sitemap-wrapper ul {margin: 0; padding: 0;}
</style>
<script>
(function(c,m){var h=window;var l=document;var e="w-sitemap-wrapper";var g="w-sitemap-loading-msg";var b=h.location;var n=b.protocol;var f=b.hostname;var k=0;l.write("<div id='"+e+"'><ol></ol><div id='"+g+"'>"+m+"</div></div>");var a=l.getElementById(e);var d=l.getElementById(g);var j=l.getElementById(e).getElementsByTagName("ol")[0];function i(o){var p=l.createElement("script");p.src=n+"//"+f+"/feeds/posts/summary?alt=json-in-script&callback=wijs_get_sitemap&start-index="+o+"&max-results=150";a.appendChild(p)}h.wijs_get_sitemap=function(E){var A=E.feed.entry;var u=parseInt(E.feed.openSearch$totalResults.$t);var x=A.length;var w="";for(var s=0;s<x;s++){var o=A[s];var C=o.title.$t;var p;var D=o.link;var y=D.length;for(var r=0;r<y;r++){if(D[r].rel==="alternate"){p=D[r].href;break}}var z=o.published.$t;var q=z.substring(0,4);var t=z.substring(5,7);var v=z.substring(8,10);var B=c.replace("dd",v).replace("mm",t).replace("yyyy",q);w+="<li><span>"+B+"</span><a href='"+p+"'>"+C+"</a></li>"}j.innerHTML+=w;k+=x;if(k<u){i(k+1)}else{d.parentNode.removeChild(d)}};i(1)})("dd/mm/yyyy","Loading......");</script>

An HTML sitemap is the key to success. Search engines read your sitemap and use it to crawl your site — meaning they send a bot to the webpage to “read” it. Google bot and other search engine crawlers then determine what’s on that page.

This is the first step in getting your page to show up in search results. Basically, the HTML sitemap helps search engines categorize your website, making it more accessible for search engines and humans alike. Below, we explain just what a sitemap is and how to create one.

What Is an HTML Sitemap?

An HTML sitemap is a file that lists all the important pages of your website that you want search engines like Google and Bing to index. Indexing refers to how search engines gather your landing pages and store them in their database. The search engine refers to this database to respond to user search engine queries. If a homepage is not indexed, it can’t be found and won’t rank in search engine results.

The sitemap doesn’t just list the pages on your website. It also contains information about each page, such as when it was created and last updated and its significance relative to the website’s other pages. Creating a sitemap is a critical first SEO step for new websites. However, even if you have an older website, it’s worth making a sitemap.

Google recommends sitemaps for large websites of more than 500 pages, but most experts agree it’s worth establishing a sitemap as soon as you create a website.

Why? Your website isn’t stagnant. It’s constantly evolving. For example, if you have a blog, you’re probably adding new pages every week. As you add pages, having a sitemap will make it easier for search engine robots to find and categorize those pages.*

Previous
« Prev Post

No comments on Kode Sitemap HTML - Daftar Isi Blog Berdasarkan Tanggal Publikasi

Post a Comment

Contact Form

Name

Email *

Message *