     end
   end
 
-  defp mkinfo(_, _, [], l), do: l
+  defp mkinfo(_, [], l), do: l
 end

  end

  defp genpage(contents, ctx) do
    template = Agent.get Global, &(Map.get &1, "template_base")
    contents = process_links contents, ctx
    render template, ctx ++ [contents: contents, navigation: Agent.get(Global, &(Map.get &1, :navstub))]
  end

  defp render(template, assigns) do
    {html, _} = Code.eval_quoted template, [assigns: assigns]
    html
  end

  defp mkinfo(dir, proj, [h|t], l) do
    [year, month, day|_] = h |> String.split("-") |> Enum.map(fn x ->
      case Integer.parse(x) do
        {x, _} -> x

    File.rm_rf! dstdir
    File.mkdir_p! dstdir

    infolist = mkinfo(dir, files, [])
    tasks_post = Enum.map infolist, &(Task.async Serum.Build, :post_task, [srcdir, dstdir, &1, template_post])

    IO.puts "Generating posts index..."
    File.open! "#{dstdir}index.html", [:write, :utf8], fn device ->
