gollum-site 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -42,6 +42,7 @@ module Gollum
42
42
  def generate(output_path, version)
43
43
  data = if l = layout()
44
44
  l.render( 'page' => self,
45
+ 'site' => @wiki.site,
45
46
  'wiki' => {'base_path' => @wiki.base_path})
46
47
  else
47
48
  formatted_data
@@ -53,8 +54,9 @@ module Gollum
53
54
  end
54
55
 
55
56
  # Return data for Liquid template
56
- def to_liquid()
57
+ def to_liquid
57
58
  { "path" => self.class.cname(name),
59
+ "link" => ::File.join(@wiki.base_path, CGI.escape(self.class.cname(name))),
58
60
  "content" => formatted_data,
59
61
  "title" => title,
60
62
  "format" => format.to_s,
@@ -136,5 +136,9 @@ module Gollum
136
136
  end
137
137
  end
138
138
  end
139
+
140
+ def to_liquid
141
+ { "pages" => @pages }
142
+ end
139
143
  end
140
144
  end
@@ -1,5 +1,5 @@
1
1
  module Gollum
2
2
  class Site
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gollum-site
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
10
- version: 0.1.0
9
+ - 1
10
+ version: 0.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Daniel Reverri
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-12-01 00:00:00 -08:00
18
+ date: 2010-12-07 00:00:00 -08:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency