mirror of
https://github.com/wezm/wezm.net.git
synced 2024-12-18 18:29:54 +00:00
Update script/bitly to new Nanoc API
This commit is contained in:
parent
23ee78f8f1
commit
913b129a62
1 changed files with 0 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue