delicious-plugin

delicious-plugin

JQuery code to pull and merge Delicious.com tags for a user and render client side. Built to add tag updates to Jekyll blog posts.

Delicious Tag Query + Render

  • Client Side JQuery.
  • Uses the Delicious Feeds and Restful API.
  • Processes Json for multiple tags.
  • Great for Jekyll + git blogs.

What?

This is demo script that will build an unordered list of links using a users delicious feed and one or more tags. The standard feed URL allows for more then one tag, but will only show links that have all the tags. This code query each tag and only out put a link once. Since the AJAX calls are asynchronous, the json calls can come back in different order.

This code was written to give my blog a dynamic element. I add tags into the Jekyll front matter. When the code renders on the client (in the browser), this code will fetch an links using those same tags from Delicious. I am lazy, so as I tag links, they will find they way into the existing Blog posts. I am way to slow to actually ready own blog and update the links :).

How?

Test runs with a feed from my delicious account, and tags 'couchdb nosql'.

http://feeds.delicious.com/v2/json/{ username }/{tag+tag+tag}
http://feeds.delicious.com/v2/json/stephansmith93/nosql

Sample Code

This sample uses my delicious account name, the ID 'reading', and a space for the tag separator.

var settings = { username:  'stephansmith93', 
                 target:    '#reading',
                 separator: ' '
               };

get_delicious_json( 'couchdb nosql', settings);

Usage

I have not attached any license usage, since this is 100% jquery and a bit of googling. Please use as you will. Feedback would be great!

Grab the code for a quick demo from https://gist.github.com/1721433

jekyll logo

Want a Jekyll website built?

Hire a Jekyll developer