Featured Post

Panduan Membuat Daftar Isi Sederhana dan Otomatis di Blog

Panduan Membuat Daftar Isi Sederhana dan Otomatis di Blog




SALAM SAHABAT 👋🙏, KIRANYA ANDA PERLU TRIK YANG SATU INI 🤔 MEMBUAT DAFTAR ISI SEDERHANA DAN OTOMATIS DI BLOG ANDA. 📝 CATAT LANGKAH- LANGKAHNYA. DARI KAMI DIUCAPKAN SELAMAT MENCOBA 🌟 SUKSES SELALU. JANGAN LUPA IKUTI ARTIKEL SELANJUTNYA DENGAN BERLANGGANAN OKE . WASSALAM.....😁🙏 .

 Daftar isi atau sitemap merupakan salah satu elemen yang tergolong penting dalam sebuah blog / web. Layaknya sebuah buku, blog juga harus memiliki daftar isi sebagai tempat informasi bagi para pengunjung blog yang berisi daftar judul - judul artikel yang telah dipublikasikan, sehingga pengunjung bisa dengan mudah mencari informasi yang di butuhkan.


Selain itu, menurut para ahli SEO, membuat sitemap blog juga termasuk salah satu bentuk SEO, sebab di dalam sitemap memuat susunan link yang sangat komplek dan secara otomatis memperkuat link building sebuah blog.

Mengapa disebut daftar isi otomatis? Karena setiap postingan yang anda publikasikan akan secara otomatis tersimpan / tercantum di dalam halaman daftar isi blog. Jadi kita tidak perlu menulisnya secara manual, Praktis boss.

Berikut ini cara membuat daftar isi / sitemap otomatis di blog menggunakan script yang bisa di bilang sangat ringan atau Responsive, sebab halaman daftar isi sederhana ini di muat tidak menggunakan bantuan link dari luar.

Ngomongin soal Responsive, sudahkah template Blogger anda responsive, jika belum ikuti panduan ini :

Template Blogger Responsive dan Gratis

Template Blogger Responsive, Seo Friendly dan Gratis 2020


Daftar isi sederhana tanpa label

1. Masuk ke Blogger >> pilih blog >> klik menu Laman >> klik laman baru.

Beri judul laman Daftar isi, Peta Situs, atau Sitemap.

2. Klik mode HTML (sebelah compose), Copy dan paste salah satu kode script di bawah ini.

Jika anda ingin daftar isi hanya menampilkan judul postingan, silahkan gunakan script berikut ini.

<script> var numposts = 1000; </script> <script> function boss(json) { document.write('<ul>'); for (var i = 0; i < numposts; i++) { document.write('<li>'); 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; posttitle = posttitle.link(posturl); } } document.write(posttitle); ('</li>'); } ('</ul>'); } </script> <script src="https://kata-h.blogspot.com/atom.xml?redirect=false&start-index=1&max-results=1000&orderby=published&alt=json-in-script&callback=boss"></script>

Jika ingin daftar isi menampilkan judul dan tanggal postingan, silahkan gunakan script di bawah ini.

<script> var numposts = 1000; var showpostdate = true; </script> <script> function boss(json) { document.write('<ul>'); for (var i = 0; i < numposts; i++) { document.write('<li>'); 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; posttitle = posttitle.link(posturl); var postdate = entry.published.$t; var cdyear = postdate.substring(0,4); var cdmonth = postdate.substring(5,7); var cdday = postdate.substring(8,10); var monthnames = new Array(); monthnames[1] = "Jan"; monthnames[2] = "Feb"; monthnames[3] = "Mar"; monthnames[4] = "Apr"; monthnames[5] = "May"; monthnames[6] = "Jun"; monthnames[7] = "Jul"; monthnames[8] = "Aug"; monthnames[9] = "Sep"; monthnames[10] = "Oct"; monthnames[11] = "Nov"; monthnames[12] = "Dec"; } } document.write(posttitle); if (showpostdate == true) document.write(' ' + cdday + ' - ' + monthnames[parseInt(cdmonth,10)] + ' - ' + cdyear); ('</li>'); } ('</ul>'); } </script> <script src="https://kata-h.blogspot.com/atom.xml?redirect=false&start-index=1&max-results=1000&orderby=published&alt=json-in-script&callback=boss"></script>

Jangan lupa ganti warna merah dengan alamat blog anda.

ket :
var numposts = 1000;

Artinya daftar isi bisa memuat maximum 1000 judul artikel, silahkan ubah sesuai kebutuhan.


var showpostdate = true;

Ini menunjukkan tampilan tanggal aktif, jika nilai nya di ubah menjadi false, maka tanggal postingan tidak tampil (nonaktif).

Berdasarkan pengalaman pribadi Sebaiknya halaman sitemap langsung di publikasikan pada mode HTML, sebab jika dipublikasikan pada mode compose script tidak bisa berfungsi lagi karena ada perubahan posisi dalam script.(script yang ber warna kuning mudah berubah).

3. Publikasikan

Jika muncul peringatan seperti ini :

Laman ini berisi sumber daya HTTP yang dapat menyebabkan konten campuran memengaruhi keamanan dan pengalaman pengguna jika blog dilihat melalui HTTPS.

Klik perbaiki, lalu publikasikan.

4. Lihat hasilnya, dan catat alamat sitemap anda, selanjutnya tinggal anda pasang di menu blog anda.

Catatan: Jika anda menggunakan judul Sitemap, biasanya akan menghasilkan alamat seperti ini:

http://yoursite.blogspot.com/p/sitemap.html


Sekian tutorial cara membuat sitemap sederhana di blog, semoga bisa bermanfaat dan selamat mencoba. Salam Blogger.

Jika sukses hasilnya seperti berikut: 

Sitemap Versi Toc 


<style type="text/css">
.tabbed-toc {margin:0 auto;background-color:#2f77bd;box-shadow: 0 0 7px rgba(5, 5, 5, 0.34);overflow:hidden;
position:relative;color:#333;border: 1px solid #9C9C9C;}
.tabbed-toc .loading {display:block;padding:10px 12px;font:normal bold 12px/normal Helmet,FreeSans,Sans-Serif;
color:white;}
.tabbed-toc ul,.tabbed-toc ol,.tabbed-toc li {margin:0;padding:0;list-style:none;}
.tabbed-toc .toc-tabs {width:20%;float:left;}
.tabbed-toc .toc-tabs li a {display:block;font:normal bold 12px/28px Helmet,Freesans,Sans-Serif;overflow:hidden;text-overflow:ellipsis;color:#fff;text-transform:uppercase;text-decoration:none;
padding:7px 15px;cursor:pointer;box-shadow: 0px 1px 1px rgb(255, 255, 255);}
.tabbed-toc .toc-tabs li a:hover {background-color:#4086E0;color:white;box-shadow: 0 0 7px rgba(0,0,0,.7);}
.tabbed-toc .toc-tabs li a.active-tab {background-color:#FFF;color:black;box-shadow: 0 0 7px rgba(0,0,0,.7);
z-index:5;margin:0 -1px 0 0;/* cursor:text; */}
.tabbed-toc .toc-content,.tabbed-toc .toc-line {width:80%;float:right;background-color:white;border-left:5px solid #1E84BC;box-sizing:border-box;}
.tabbed-toc .toc-line {float:none;display:block;position:absolute;top:0;right:0;bottom:0;box-shadow:0 0 7px rgba(0,0,0,.7);}
.tabbed-toc .panel {position:relative;z-index:5;font:normal normal 10px/normal Helmet,FreeSans,Sans-Serif;}
.tabbed-toc .panel li a {display:block;position:relative;font-weight:bold;font-size:12px;color:#000;line-height:20px;padding: 10px 12px;
text-decoration:none;outline:none;overflow:hidden;}
.tabbed-toc .panel li time {display:block;font-style:italic;font-weight:normal;font-size:10px;color:#666;float:right;}
.tabbed-toc .panel li .summary {display:block;padding:10px 12px 10px;font-style:italic;
border-bottom:4px solid #275827;overflow:hidden;}
.tabbed-toc .panel li .summary img.thumbnail {float:left;display:block;margin:0 8px 0 0;padding:4px;
width:72px;height:72px;border:1px solid #dcdcdc;background-color:#fafafa;}
.tabbed-toc .panel li:nth-child(even) {background-color:#66A9FF}
.tabbed-toc .panel li a:hover,.tabbed-toc .panel li a:focus,.tabbed-toc .panel li a:hover time,.tabbed-toc .panel li.bold a {
background-color:#333;color:white;outline:none;}
.tabbed-toc .panel li.bold a:hover,
.tabbed-toc .panel li.bold a:hover time {background-color:#222}
@media (max-width:700px) {
.tabbed-toc {border:2px solid #333}
.tabbed-toc .toc-tabs,.tabbed-toc .toc-content {overflow:hidden;width:auto;float:none;display:block;}
.tabbed-toc .toc-tabs li {display:inline;float:left;}
.tabbed-toc .toc-tabs li a,.tabbed-toc .toc-tabs li a.active-tab {background-color:#2f77bd;box-shadow:2px 0 7px rgba(0,0,0,.4);}
.tabbed-toc .toc-tabs li a.active-tab {background-color:white;color:#333;}
.tabbed-toc .toc-content {border:none}
.tabbed-toc .toc-line,
.tabbed-toc .panel li time {display:none}
.tabbed-toc .panel li a{height: auto;}
</style>
<div class="tabbed-toc" id="tabbed-toc">
<span class="loading">Memuat…</span></div>
<script>
var tabbedTOC = {
blogUrl: "https://www.alhikmah.my.id/", // Blog URL
containerId: "tabbed-toc", // Container ID
activeTab: 1, // The default active tab index (default: the first tab)
showDates: false, // `true` to show the post date
showSummaries: false, // `true` to show the posts summaries
numChars: 200, // Number of summary chars
showThumbnails: false, // `true` to show the posts thumbnails (Not recommended)
thumbSize: 40, // Thumbnail size
noThumb: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAAA3NCSVQICAjb4U/gAAAADElEQVQImWOor68HAAL+AX7vOF2TAAAAAElFTkSuQmCC", // A "no thumbnail" URL
monthNames: [ // Array of month names
"Januari",
"Februari",
"Maret",
"April",
"Mei",
"Juni",
"Juli",
"Agustus",
"September",
"Oktober",
"November",
"Desember"
],
newTabLink: true, // Open link in new window?
maxResults: 99999, // Maximum post results
preload: 0, // Load the feed after 0 seconds (option => time in milliseconds || "onload")
sortAlphabetically: true, // `false` to sort posts by published date
showNew: 7, // `false` to hide the "New!" mark in most recent posts, or define how many recent posts are to be marked
newText: ' &ndash; <em style="color:red;">New!</em>' // HTML for the "New!" text
};
</script>
<script type="text/javascript">
/*!
 * Blogger Tabbed Style Table of Content Widget by @kang Wahyu
 * Free for change but keep the original attribution.
 * URL: https://alhikmah.my.id ; www.kata-h.blogspot.com ; wahyu9kdl.github.io ; awsos.blogspot.com ; https://youtube.com/channel/UC7CRa3nkxakAZx_aRsMwRyA ; https://m.facebook.com/Awgroupchannel/ ;https://about.me/ahmadwahyudi ; https://onedrive.live.com/?authkey=%21AIiRepe9LlR6x-Q&cid=B3548BE32AE66535&id=B3548BE32AE66535%21610&parId=B3548BE32AE66535%21288&o=OneUp ; https://www.dropbox.com/request/8i3MLGANkBstGwNii42Q ; https://youtu.be/P-Ko2exjawo ; https://youtu.be/4dIRWzDLjFM ; https://wahyu9kdl.github.io/AL-HIKMAH/ ; https://wahyu9kdl.github.io/DASHBOARD/ ; https://codepen.io/SAN3 ; 
 * Donasi : https://link.dana.id/qr/3854e4rk ; https://paypal.me/wahyudi9kdl?locale.x=id_ID ; https://saweria.co/AwGroupChannel ; https://www.patreon.com/join/Awfanspage/signup?ru=%2Fjoin%2FAwfanspage%2Fcheckout%3Frid%3D0%26 ; 
 */
 
!function(a,b){var c=(new Date).getTime(),d={blogUrl:"http://dte-feed.blogspot.com",containerId:"tabbed-toc",activeTab:1,showDates:!1,showSummaries:!1,numChars:200,showThumbnails:!1,thumbSize:40,noThumb:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAAA3NCSVQICAjb4U/gAAAADElEQVQImWOor68HAAL+AX7vOF2TAAAAAElFTkSuQmCC",monthNames:["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"],newTabLink:!0,maxResults:99999,preload:0,sortAlphabetically:!0,showNew:!1,newText:' &ndash; <em style="color:red;">Baru!</em>'};if("undefined"==typeof tabbedTOC)tabbedTOC=d;else for(var e in d)d[e]="undefined"!=typeof tabbedTOC[e]?tabbedTOC[e]:d[e];a["clickTabs_"+c]=function(a){for(var b=document.getElementById(d.containerId),c=b.getElementsByTagName("ol"),e=b.getElementsByTagName("ul")[0],f=e.getElementsByTagName("a"),g=0,h=c.length;h>g;++g)c[g].style.display="none",c[parseInt(a,10)].style.display="block";for(var i=0,j=f.length;j>i;++i)f[i].className="",f[parseInt(a,10)].className="active-tab"},a["showTabs_"+c]=function(e){for(var f=parseInt(e.feed.openSearch$totalResults.$t,10),g=d,h=e.feed.entry,i=e.feed.category,j="",l=0;l<(g.showNew===!0?5:g.showNew)&&l!==h.length;++l)h[l].title.$t=h[l].title.$t+(g.showNew!==!1?g.newText:"");h=g.sortAlphabetically?h.sort(function(a,b){return a.title.$t.localeCompare(b.title.$t)}):h,i=g.sortAlphabetically?i.sort(function(a,b){return a.term.localeCompare(b.term)}):i,j='<span class="toc-line"></span><ul class="toc-tabs">';for(var m=0,n=i.length;n>m;++m)j+='<li class="toc-tab-item-'+m+'"><a onclick="clickTabs_'+c+"("+m+');return false;" onmousedown="return false;" href="javascript:;">'+i[m].term+"</a></li>";j+="</ul>",j+='<div class="toc-content">';for(var o=0,n=i.length;n>o;++o){j+='<ol class="panel" data-category="'+i[o].term+'"',j+=o!=g.activeTab-1?' style="display:none;"':"",j+=">";for(var p=0;f>p&&p!==h.length;++p){for(var q,r=h[p],s=r.published.$t,t=g.monthNames,u=r.title.$t,v=("summary"in r&&g.showSummaries===!0?r.summary.$t.replace(/<br *\/?>/g," ").replace(/<.*?>/g,"").replace(/[<>]/g,"").substring(0,g.numChars)+"&hellip;":""),w=("media$thumbnail"in r&&g.showThumbnails===!0?'<img class="thumbnail" style="width:'+g.thumbSize+"px;height:"+g.thumbSize+'px;" alt="" src="'+r.media$thumbnail.url.replace(/\/s\d(\-c)?\//,"/s"+g.thumbSize+"-c/")+'"/>':'<img class="thumbnail" style="width:'+g.thumbSize+"px;height:"+g.thumbSize+'px;" alt="" src="'+g.noThumb.replace(/\/s\d(\-c)?\//,"/s"+g.thumbSize+"-c/")+'"/>'),x=r.category||[],y=g.showDates?'<time datetime="'+s+'" title="'+s+'">'+s.substring(8,10)+" "+t[parseInt(s.substring(5,7),10)-1]+" "+s.substring(0,4)+"</time>":"",z=0,A=r.link.length;A>z;++z)if("alternate"===r.link[z].rel){q=r.link[z].href;break}for(var B=0,C=x.length;C>B;++B){var D=g.newTabLink?' target="_blank"':"";x[B].term===i[o].term&&(j+='<li title="'+x[B].term+'"',j+=g.showSummaries?' class="bold"':"",j+='><a href="'+q+'"'+D+">"+u+y+"</a>",j+=g.showSummaries?'<span class="summary">'+w+v+'<span style="display:block;clear:both;"></span></span>':"",j+="</li>")}}j+="</ol>"}j+="</div>",j+='<div style="clear:both;"></div>',b.getElementById(g.containerId).innerHTML=j,a["clickTabs_"+c](g.activeTab-1)};var f=b.getElementsByTagName("head")[0],g=b.createElement("script");g.src=d.blogUrl.replace(/\/+$|[\?&#].*$/g,"")+"/feeds/posts/summary?alt=json-in-script&max-results="+d.maxResults+"&orderby=published&callback=showTabs_"+c,"onload"!==d.preload?a.setTimeout(function(){f.appendChild(g)},d.preload):a.onload=function(){f.appendChild(g)}}(window,document);
</script>



DONASI VIA DANA Bantu berikan donasi jika artikelnya dirasa bermanfaat. Donasi akan digunakan untuk memperpanjang domain https://www.alhikmah.my.id/. Terima kasih.
Newer Posts Newer Posts Older Posts Older Posts

More posts

AL HIKMAH
Follow My Blog
DMCA.com Protection Status