octopress-ink 1.0.0.rc.50 → 1.0.0.rc.51

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ce4c7acfb6d35fa4fbef2bd55517ea7afe07c152
4
- data.tar.gz: 11699fa14d7a02824d0d19dd06ba50d0e202195a
3
+ metadata.gz: 70fefc4e7e1779182c223e942a89186c5ff00c57
4
+ data.tar.gz: 79592ca882f3e6903b3bd7d84043b49f934fa1c3
5
5
  SHA512:
6
- metadata.gz: f1799a7689945f7ca5f44474c7ab83261c267826bfcbee3078fa6ab9cbac01255acecd68b52dc766e8b616a57ac4c89512d9b2a7696ab1e01fc5f58ba27d95ea
7
- data.tar.gz: 370063e56a406ef072e2e9032ebef830930529c2384fd0523d1a55ed803bc1f75d734476fe881c9c5550df31a0b79f31663143fb16ddf841e7f20a494883b115
6
+ metadata.gz: 3ba34220f3c7d253d2041860c677c1d0d1decf8a192285ea27c8058059ea01cb1257b326012a22a8e1e1f30883501eedabe684e4f718b9d9a27dbc514580fc73
7
+ data.tar.gz: ac07ce8413bcd851449bc60e80b836a120b751794fc9d8e4ba72e1a2ae3314a6588d94f9e0f2668126a929d441dcd98b04d57f7d03715d1166396b7daf498563
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ### 1.0.0 RC51 - 2015-03-04
4
+ - Fix: Plugin bootstrap only fires if Site has posts.
5
+ - Fix: Use double quotes for HTML attributes in liquid tags.
6
+
3
7
  ### 1.0.0 RC50 - 2015-03-04
4
8
  - Improved information about disabled or overridden assets on `ink list plugin` commands
5
9
  - Reworked plugin bootstrap to use templates instead of pages
@@ -3,7 +3,7 @@ module Octopress
3
3
  module Assets
4
4
  class Coffeescript < Javascript
5
5
  def tag
6
- "<script src='#{Filters.expand_url(File.join(dir, File.basename(file, '.*') << '.js'))}'></script>"
6
+ %{<script src="#{Filters.expand_url(File.join(dir, File.basename(file, '.*') << '.js'))}"></script>}
7
7
  end
8
8
 
9
9
  def add
@@ -3,7 +3,7 @@ module Octopress
3
3
  module Assets
4
4
  class Javascript < Asset
5
5
  def tag
6
- "<script src='#{Filters.expand_url(File.join(dir, file))}'></script>"
6
+ %Q{<script src="#{Filters.expand_url(File.join(dir, file))}"></script>}
7
7
  end
8
8
 
9
9
  def add
@@ -27,7 +27,7 @@ module Octopress
27
27
  end
28
28
 
29
29
  def tag
30
- "<link href='#{Filters.expand_url(File.join(dir, output_file_name))}' media='#{media}' rel='stylesheet' type='text/css'>"
30
+ %Q{<link href="#{Filters.expand_url(File.join(dir, output_file_name))}" media="#{media}" rel="stylesheet" type="text/css">}
31
31
  end
32
32
 
33
33
  def add
@@ -68,9 +68,8 @@ module Octopress
68
68
  end
69
69
  end
70
70
 
71
+ # Find templates
71
72
  def register_templates
72
- # Find pages and templates
73
-
74
73
  @post_index = templates.find { |p| p.filename == 'post_index.html' }
75
74
  @post_archive = templates.find { |p| p.filename == 'post_archive.html' }
76
75
  @main_feed = templates.find { |p| p.filename == 'main_feed.xml' }
@@ -131,18 +130,21 @@ module Octopress
131
130
  # - Category and tag indexes and feeds depend on post metadata and configuration
132
131
  #
133
132
  def inject_pages(lang=nil)
134
- config = self.config(lang)
135
133
 
136
- # Only clone these pages for additional languages
137
- #
138
- add_indexes(config, lang, post_index)
139
- add_indexes(config, lang, post_archive)
134
+ # Save some time if there are no posts
135
+ if !Octopress.site.posts.empty?
136
+
137
+ config = self.config(lang)
140
138
 
141
- add_feeds(config, lang, main_feed)
139
+ add_indexes(config, lang, post_index)
140
+ add_indexes(config, lang, post_archive)
142
141
 
143
- if defined? Octopress::Linkblog
144
- add_feeds(config, lang, links_feed)
145
- add_feeds(config, lang, articles_feed)
142
+ add_feeds(config, lang, main_feed)
143
+
144
+ if defined? Octopress::Linkblog
145
+ add_feeds(config, lang, links_feed) if Octopress::Linkblog
146
+ add_feeds(config, lang, articles_feed)
147
+ end
146
148
  end
147
149
 
148
150
  add_meta_indexes(config, lang, 'category', 'categories')
@@ -28,16 +28,16 @@ module Octopress
28
28
  link = item_link(page, item)
29
29
 
30
30
  if item_list?
31
- link = "<li class='#{item_type}-list-item'>#{link}</li>"
31
+ link = %Q{<li class="#{item_type}-list-item">#{link}</li>}
32
32
  end
33
33
 
34
34
  link
35
35
  end
36
36
 
37
37
  if item_list?
38
- "<ul class='#{item_name}-list'>#{items.join}</ul>"
38
+ %Q{<ul class="#{item_name}-list">#{items.join}</ul>}
39
39
  else
40
- "<span class='#{item_name}-links'>#{items.join(', ')}</span>"
40
+ %Q{<span class="#{item_name}-links">#{items.join(', ')}</span>}
41
41
  end
42
42
  end
43
43
 
@@ -56,7 +56,7 @@ module Octopress
56
56
  def item_link(page, item)
57
57
  dir = Bootstrap.send(item_name, item, page['lang'])
58
58
  path = File.join(@context['site']['baseurl'], dir)
59
- "<a class='#{item_name}-link' href='#{path}'>#{item.capitalize}</a>"
59
+ %Q{<a class="#{item_name}-link" href="#{path}">#{item.capitalize}</a>}
60
60
  end
61
61
  end
62
62
  end
@@ -11,7 +11,7 @@ module Octopress
11
11
  end
12
12
 
13
13
  def tag(url, title)
14
- "<link href='#{File.join('/', Octopress.site.config['baseurl'], url).sub('index.xml', '')}' title='#{title}' rel='alternate' type='application/atom+xml'>"
14
+ %Q{<link href="#{File.join('/', Octopress.site.config['baseurl'], url).sub('index.xml', '')}" title="#{title}" rel="alternate" type="application/atom+xml">}
15
15
  end
16
16
  end
17
17
  end
@@ -1,5 +1,5 @@
1
1
  module Octopress
2
2
  module Ink
3
- VERSION = "1.0.0.rc.50"
3
+ VERSION = "1.0.0.rc.51"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: octopress-ink
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.rc.50
4
+ version: 1.0.0.rc.51
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Mathis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-04 00:00:00.000000000 Z
11
+ date: 2015-03-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll