Sitemaps.Builders.Url (Sitemaps v0.1.2)

Copy Markdown View Source

Create the url tag adding all of the information that could be passed via attributes to the function to_xml/2 as second parameter.

Summary

Functions

It creates the XML representation of a link based on the attributes passed as second parameter. You can use as parameters

Functions

to_xml(link, attrs \\ [])

It creates the XML representation of a link based on the attributes passed as second parameter. You can use as parameters:

  • :lastmod as the time it was modified last time. See Sitemaps.Func.iso8601/0.
  • :expires as the number of seconds when it will expire.
  • :changefreq as the frequency of changing of the link.
  • :priority as the number of the priority of the link.
  • :mobile
  • :geo
  • :pagemap
  • :images
  • :videos
  • :alternates