lib/nanoc/base/page.rb in nanoc-2.0.2 vs lib/nanoc/base/page.rb in nanoc-2.0.3
- old
+ new
@@ -57,11 +57,16 @@
def layouted_content
compile(true)
@content[:post]
end
- def skip_output? ; attribute_named(:skip_output) ; end
- def path ; attribute_named(:path) ; end
+ def skip_output?
+ attribute_named(:skip_output)
+ end
+
+ def path
+ attribute_named(:custom_path) || attribute_named(:path)
+ end
def path_on_filesystem
if attribute_named(:custom_path).nil?
@site.config[:output_dir] + attribute_named(:path) +
attribute_named(:filename) + '.' + attribute_named(:extension)