diff options
Diffstat (limited to '')
-rw-r--r-- | .themes/classic/source/_includes/asides/delicious.html | 5 | ||||
-rw-r--r-- | .themes/classic/source/javascripts/octopress.js | 9 |
2 files changed, 12 insertions, 2 deletions
diff --git a/.themes/classic/source/_includes/asides/delicious.html b/.themes/classic/source/_includes/asides/delicious.html index 560e4afa..8c75b822 100644 --- a/.themes/classic/source/_includes/asides/delicious.html +++ b/.themes/classic/source/_includes/asides/delicious.html @@ -1,7 +1,8 @@ {% if site.delicious_user %} <section> <h1>On Delicious</h1> - <script type="text/javascript" src="http://feeds.delicious.com/v2/js/{{ site.delicious_user }}?title=&count={{ site.delicious_count }}&sort=date&extended"></script> + <div id="delicious"></div> + <script type="text/javascript" src="http://feeds.delicious.com/v1/json/{{ site.delicious_user }}?count={{ site.delicious_count }}&sort=date&callback=renderDeliciousLinks"></script> <p><a href="http://delicious.com/{{ site.delicious_user }}">My Delicious Bookmarks »</a></p> </section> -{% endif %} +{% endif %}
\ No newline at end of file diff --git a/.themes/classic/source/javascripts/octopress.js b/.themes/classic/source/javascripts/octopress.js index fc679f11..35174fd8 100644 --- a/.themes/classic/source/javascripts/octopress.js +++ b/.themes/classic/source/javascripts/octopress.js @@ -104,6 +104,15 @@ function wrapFlashVideos() { }); } +function renderDeliciousLinks(items) { + var output = "<ul>"; + for (var i=0,l=items.length; i<l; i++) { + output += '<li><a href="' + items[i].u + '" title="Tags: ' + items[i].t.join(', ') + '">' + items[i].d + '</a></li>'; + } + output += "</ul>"; + $('#delicious').html(output); +} + $.domReady(function() { testFeatures(); wrapFlashVideos(); |