     title = '(untitled)'
 
   body = marked.Parser.parse(lex)
+  # Convert relative links to absolute
+  if input.absolutePath or input.absoluteURL
+    body = convertToAbsoluteLinks body, input
 
   # Date
   if input.year? and input.month? and input.date?

      return component.text
  null

# Format Markdown content into HTML
formatPage = (input, callback) ->
  lex = marked.Lexer.lex(input.markdown)

  <updated>#{new Date(recentInfo.generatedTime).toISOString()}</updated>
  """
  for file in recentInfo.recentFiles
    html = convertToAbsoluteLinks file.body, {
      year       : file.year
      month      : file.month
      date       : file.date
      absoluteURL: true
    }
    entryUrl = "#{config.siteURL}/#{file.year}/#{file.month}/#{file.datepart}/#{file.slug}"
    title = file.title
    if (not title?) or (title is '')
