Skip to content

Small script to load all tags that exist within one single blog on tumblr. (no third-party dependency)

Notifications You must be signed in to change notification settings

shimizurei/tumblr-tags

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

Tumblr tags

A small script that fetches all the tags for a tumblr-blog. The script doesn't display anything, but instead returns an array of the tags and how many times each tags has been used (so you can style it however you want).

Here's a live demo and here's a blog post describing the project.

How to use

Include the script src/tumblrTags.js. Once the document is ready you can fetch the tags for a tumblr user.

// Create a TumblrTags object, set the username of the blog.
var tagFetcher = new window.TumblrTags(username);

// Hook in to the ready event.
// The anonymous function will be fired when all the tags are fetched.
tagFetcher.on(
	'ready',
	function(tags){
		// Do something with the tags
		console.log(tags);
	}
);

// Load posts
tagFetcher.load();

About

Small script to load all tags that exist within one single blog on tumblr. (no third-party dependency)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 95.8%
  • HTML 4.2%