blob: 3b5969155ac2669eb08a01e0834384c7984c1a29 [file] [log] [blame]
div(class:"editpagelink") {
// relativize absolute content.file path
def relativeSourcePath = config.sourceFolder.toPath().relativize(java.nio.file.Paths.get(content.file))
yield "This page can be edited on GitHub at "
a(href:"${config.sling_github_baseEditingURL}${relativeSourcePath}") {
yield "${relativeSourcePath}"
}
}