diff --git a/lib/toto.rb b/lib/toto.rb index 0abade3..4bacde5 100644 --- a/lib/toto.rb +++ b/lib/toto.rb @@ -172,7 +172,7 @@ class Context attr_reader :env, :tags_cloud def initialize ctx = {}, config = {}, path = "/", env = {} - @config, @context, @path, @env = config, ctx, path, env + @config, @context, @path, @env, @page_title = config, ctx, path, env, [] @articles = Site.articles(@config[:ext]).reverse.map do |a| Article.new(a, @config) end @@ -203,10 +203,12 @@ def method_missing m, *args, &blk end def page_title! str + @page_title << str + str end def page_title - [] + @page_title.dup end end end