# This function helps to build a relative path from the page to the output root. # # Usage: wadus def page_depth path depth = "" (path.split("/").size-1).times do depth = depth + "../" end depth end