Last active
December 30, 2015 22:09
-
-
Save yuya-matsushima/7892173 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ current_resource.path // => "index.html" | |
$ current_resource.destination_path // => "index.html" | |
$ current_resource.source_file // => "/path/to/dir/middleman-guides/source/index.html.erb" | |
$ current_resource.url // => "/" | |
$ current_resource.ext // => ".html" | |
$ current_resource.data // => {"layout"=>"layout"} | |
$ current_resource.data.layout // => "layout" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sitemap.resources.select { |page| page.destination_path =~ /\.html/ }.each do |page| | |
$ puts page.destination_path | |
$ end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment