lib/lookbook/page.rb in lookbook-1.3.3 vs lib/lookbook/page.rb in lookbook-1.3.4
- old
+ new
@@ -24,10 +24,10 @@
@sections = []
@frontmatter = {}
@content = ""
@page_name = remove_position_prefix(path_name)
@rel_path = @pathname.relative_path_from(@base_path)
- page_path = @rel_path.dirname.to_s == "." ? @page_name : "#{@rel_path.dirname}/#{@page_name}"
+ page_path = (@rel_path.dirname.to_s == ".") ? @page_name : "#{@rel_path.dirname}/#{@page_name}"
extract_frontmatter(file_contents)
super(page_path)
end
def url_path