Skip to content

Instantly share code, notes, and snippets.

@matallo
Created July 24, 2014 09:21
Show Gist options
  • Save matallo/d9449bb932aec9db95d2 to your computer and use it in GitHub Desktop.
Save matallo/d9449bb932aec9db95d2 to your computer and use it in GitHub Desktop.
$(function() {
var googleAPI = "http://ajax.googleapis.com/ajax/services/feed/load?v=1.0&num=10&q=",
url = "{{YOUR_RSS_URL}}";
// Use PressDoc RSS
$.getJSON(googleAPI + url + "&callback=?", function(data) {
var items = "";
$.each(data.responseData.feed.entries, function() {
items += "#"+this.title+"\n"+this.content+"\n\n";
});
$("#md_template").html("```\n-title: \"Odyssey example FTW\"\n-author: \"CartoDB\"\n```\n\n"+items);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment