octopress-filters 1.3.1 → 1.3.2
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-filters.rb +9 -0
- data/lib/octopress-filters/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0a82e06b7ca901a3273ab3016fdc6b4f6fee008c
|
4
|
+
data.tar.gz: b9cbd92d04f3421a3f4be54ef80c8da1766d0118
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8f8912a3e45e33547c31b11b872f6b126e6064b5d006467168989737aa3011decfdc16735dd4662375a7a3bd4f0bf98a638c652f0b4d007f8979d9bf44b156e7
|
7
|
+
data.tar.gz: 4253508e1e4649330b058a32f1e56897707beb3cf8f3cedc18984efe3ddc673e08618b55d24e1522070519fca4f7150b125bc73ddfb09b09bc0523ef5c0c8b91
|
data/CHANGELOG.md
CHANGED
data/lib/octopress-filters.rb
CHANGED
@@ -7,6 +7,15 @@ module Octopress
|
|
7
7
|
module Filters
|
8
8
|
attr_accessor :site
|
9
9
|
|
10
|
+
# If filters are called before hooks, use Octopress.site if available
|
11
|
+
def site
|
12
|
+
if defined?(Octopress.site)
|
13
|
+
Octopress.site
|
14
|
+
else
|
15
|
+
@site
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
10
19
|
# Returns the site's baseurl or '/' if the config isn't set
|
11
20
|
#
|
12
21
|
def root
|