Skip to content

Commit

Permalink
Amended script to track template popularity
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmerfield committed Nov 16, 2018
1 parent 6bcd457 commit e580044
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/info/template-popularity.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ var templates = {};

eachBlog(
function(user, blog, next) {
// they use a custom template
if (blog.template.indexOf("SITE") !== 0) return next();

templates[blog.template] = templates[blog.template] || 0;
templates[blog.template]++;

Expand Down

0 comments on commit e580044

Please sign in to comment.