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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/octopress-ink/assets/coffeescript.rb +1 -1
- data/lib/octopress-ink/assets/javascript.rb +1 -1
- data/lib/octopress-ink/assets/stylesheet.rb +1 -1
- data/lib/octopress-ink/plugin/bootstrap.rb +13 -11
- data/lib/octopress-ink/tags/category_tag.rb +4 -4
- data/lib/octopress-ink/tags/feeds_tag.rb +1 -1
- data/lib/octopress-ink/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 70fefc4e7e1779182c223e942a89186c5ff00c57
|
4
|
+
data.tar.gz: 79592ca882f3e6903b3bd7d84043b49f934fa1c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
6
|
+
%{<script src="#{Filters.expand_url(File.join(dir, File.basename(file, '.*') << '.js'))}"></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
|
-
|
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
|
-
#
|
137
|
-
|
138
|
-
|
139
|
-
|
134
|
+
# Save some time if there are no posts
|
135
|
+
if !Octopress.site.posts.empty?
|
136
|
+
|
137
|
+
config = self.config(lang)
|
140
138
|
|
141
|
-
|
139
|
+
add_indexes(config, lang, post_index)
|
140
|
+
add_indexes(config, lang, post_archive)
|
142
141
|
|
143
|
-
|
144
|
-
|
145
|
-
|
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 =
|
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
|
-
|
38
|
+
%Q{<ul class="#{item_name}-list">#{items.join}</ul>}
|
39
39
|
else
|
40
|
-
|
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
|
-
|
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
|
-
|
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
|
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.
|
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-
|
11
|
+
date: 2015-03-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|