From 913b129a6227ae0b29efb5baf28a9d2ab615a686 Mon Sep 17 00:00:00 2001 From: Wesley Moore Date: Sun, 13 Jan 2013 17:07:36 +1100 Subject: [PATCH] Update script/bitly to new Nanoc API --- script/bitly | 1 - 1 file changed, 1 deletion(-) diff --git a/script/bitly b/script/bitly index 77faa93..98759ed 100755 --- a/script/bitly +++ b/script/bitly @@ -14,7 +14,6 @@ site = Nanoc3::Site.new(Pathname(__FILE__).parent.parent.to_s) Bitly.use_api_version_3 bitly = Bitly.new('wezm', 'R_f2bfdace56c886671086eb0c8acb9ce7') -site.load_data site.items.select { |item| item[:kind] == 'article' }.each do |article| meta = YAML.load_file(article[:meta_filename]) || {} url = site.config[:base_url] + article.path