diff options
author | Frederic Hemberger <mail@frederic-hemberger.de> | 2011-09-26 14:19:47 +0200 |
---|---|---|
committer | Frederic Hemberger <mail@frederic-hemberger.de> | 2011-09-26 14:19:47 +0200 |
commit | 40a7809d654b91fd6cf5cba6a4102b1067bb33f8 (patch) | |
tree | 7965bc0b97a1cb46d26d1c46c76a9de3f8c709b0 /.themes | |
parent | 167db49940a7c7c8269232600c12ae6757ac4080 (diff) | |
download | my_new_personal_website-40a7809d654b91fd6cf5cba6a4102b1067bb33f8.tar.xz my_new_personal_website-40a7809d654b91fd6cf5cba6a4102b1067bb33f8.zip |
Fixes delicious integration #179
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(); |