 
   require EEx
   alias Serum.GlobalBindings
-  alias Serum.Result
+  alias Serum.Page
+  alias Serum.Post
 
   def name, do: "Create sitemap for search engine"
   def version, do: "1.1.0"

    |> Path.join("sitemap.xml.eex")

  EEx.function_from_file(:defp, :sitemap_xml, sitemap_path, [
    :all_posts,
    :transformer,
    :server_root
  ])

  defp to_w3c_format(erl_datetime) do
    # reference to https://www.w3.org/TR/NOTE-datetime

    |> GlobalBindings.get()
    |> Map.fetch!(:server_root)
  end
end
