class Jekyll::Page

def permalink

Returns the String permalink or nil if none has been set.

body.
The full path and filename of the post. Defined in the YAML of the post
def permalink
  data.nil? ? nil : data["permalink"]
end