ul#entries {
padding: 0 !important;
}
ul#entries li {
list-style: none !important;
margin-bottom: 1.5em;
}
ul#entries li h3 {
margin: 0 0 1em 0 !important;
}
- Loading...
// ================================================
// Your info here
// ================================================
var feedURL = 'http://feeds2.feedburner.com/DoubletakeClothingBlog';
var numEntries = 10;
var blogURL = 'http://blog.doubletakeclothing.com/';
var blogLink = 'View full blog »';
// ================================================
google.load("feeds", "1");
function initialize() {
var feed = new google.feeds.Feed(feedURL);
feed.setNumEntries(numEntries);
feed.load(function(result) {
if(result.error) return;
var list = document.getElementById('entries');
list.removeChild(list.firstChild);
for(var i = 0; i < result.feed.entries.length; i++) {
var entry = result.feed.entries[i];
var link = document.createElement('a');
link.setAttribute('href', entry.link);
link.appendChild(document.createTextNode(entry.title));
var title = document.createElement('h3');
title.appendChild(link);
var content = document.createElement('div');
content.innerHTML = entry.content;
var li = document.createElement('li');
li.appendChild(title);
li.appendChild(content);
list.appendChild(li);
}
if(blogLink && blogURL) {
var link = document.createElement('a');
link.setAttribute('href', blogURL);
link.innerHTML = blogLink;
var li = document.createElement('li');
li.appendChild(link);
list.appendChild(li);
}
});
}
google.setOnLoadCallback(initialize);