I'm trying to grab the data feed on my blog with the help of blogger json. I made it with the help of javascript to retrieve the data, but I was confused about displaying the last data in an array of feeds.Whereas what is shown is all the arrays based on the labels in the feeds.
My question: how to show only the last data in an array in blogger feeds.
function series(e) { for (var t = 0; t < e.feed.entry.length; t++) { var r, l = e.feed.entry[t], n = l.title.$t; if (t == e.feed.entry.length) break; for (var i = 0; i < l.link.length; i++) if ("replies" == l.link[i].rel && "text/html" == l.link[i].type && (l.link[i].title, l.link[i].href), "alternate" == l.link[i].rel) { r = l.link[i].href; break } document.write('<a href="'+ r +'" title="'+ n +'">'+ n +"</a>") }}
<script src="https://anitoki.malestea.com/feeds/posts/default/-/Horimiya?orderby=published&alt=json-in-script&callback=series&max-results=999"></script>