Blog

Blogger All Tag or Category Show in page Template with HTML Edit Mode




Blogger All Tag or Category Show in page Template with HTML Edit Mode




<div class='all-labels'>

  <ul>


  </ul>

</div>


<script>


const allLabelList = document.querySelector(&#39;.all-labels ul&#39;);


  const displayAllCat =(categories)=&gt;{

    categories.forEach(c =&gt;{

      console.log(c.term);


        const li = document.createElement(&#39;li&#39;);

        const a = document.createElement(&#39;a&#39;);


        a.innerHTML = c.term;

        a.href =`https://codersheet.blogspot.com/search/label/${c.term}`;

        li.appendChild(a);

        allLabelList.appendChild(li);


    })

  }

  

  const fetchAllCategories = (data) =&gt; {

      displayAllCat(data.feed.category);

    }

</script>


<script src='https://codersheet.blogspot.com/feeds/posts/default?alt=json-in-script&amp;callback=fetchAllCategories'/>





/**/

It is a check link

https://codersheet.blogspot.com/feeds/posts/default?alt=json