_plugins/generate_sitemap.rb
def entry(path, date, changefreq, site, priority)
      # Remove the trailing slash from the baseurl if it is present, for consistency.
      baseurl = site.config['baseurl'] || "http://blog.auth0.com"
      baseurl = baseurl[0..-2] if baseurl=~/\/$/

      "
  <url>
      <loc>https://auth0.com#{baseurl}#{path}</loc>
      <priority>#{priority}</priority>
      <lastmod>#{date.strftime("%Y-%m-%d")}</lastmod>#{if changefreq.length > 0
          "\n      <changefreq>#{changefreq}</changefreq>" end}
  </url>"
    end
# Creates an XML entry from the given path and date.
#
#  +path+ is the URL path to the page.
#  +date+ is the date the file was modified (in the case of regular pages), or published (for blog posts).
#  +changefreq+ is the frequency with which the page is expected to change (this information is used by
#    e.g. the Googlebot). This may be specified in the page's YAML front matter. If it is not set, nothing
#    is output for this property.
Creates an XML entry from the given path and date.
+path+ is the URL path to the page.
+date+ is the date the file was modified (in the case of regular pages), or published (for blog posts).
+changefreq+ is the frequency with which the page is expected to change (this information is used by
e.g. the Googlebot). This may be specified in the page's YAML front matter. If it is not set, nothing
is output for this property.
Creates an XML entry from the given path and date . + path + is the URL path to the page . + date + is the date the file was modified ( in the case of regular pages ) or published ( for blog posts ) . + changefreq + is the frequency with which the page is expected to change ( this information is used by e . g . the Googlebot ) . This may be specified in the page ' s YAML front matter . If it is not set nothing is output for this property .
def entry(path, date, changefreq, site, priority)
      baseurl = site.config['baseurl'] || "http://blog.auth0.com"
      baseurl = baseurl[0..-2] if baseurl=~/\/$/
      "
  <url>
      <loc>https://auth0.com#{baseurl}#{path}</loc>
      <priority>#{priority}</priority>
      <lastmod>#{date.strftime("%Y-%m-%d")}</lastmod>#{if changefreq.length > 0
          "\n      <changefreq>#{changefreq}</changefreq>" end}
  </url>"
    end
def entry ( path , date , changefreq , site , priority ) baseurl = site . config [ 'baseurl' ] || "http://blog.auth0.com" baseurl = baseurl [ 0 .. - 2 ] if baseurl =~ / \/ $ / "
  <url>
      <loc>https://auth0.com#{baseurl}#{path}</loc>
      <priority>#{priority}</priority>
      <lastmod>#{date.strftime("%Y-%m-%d")}</lastmod>#{if changefreq.length > 0
          "\n      <changefreq>#{changefreq}</changefreq>" end}
  </url>" end
Creates an XML entry from the given path and date.
Creates an XML entry from the given path and date .
# Remove the trailing slash from the baseurl if it is present, for consistency.
path
date
changefreq
site
priority