     File.rm_rf! dstdir
     File.mkdir_p! dstdir
 
-    Enum.each launch_post1(mode, files, srcdir, dstdir, template_post), &Task.await&1
+    Enum.each launch_post(mode, files, srcdir, dstdir, template_post), &Task.await&1
     infolist = Serum.Build.PostInfoStorage
            |> Agent.get(&(&1))
            |> Enum.sort_by(&(&1.file))

    Agent.update Serum.Build.PostInfoStorage, &([info|&1])
  end

  def post_task(srcdir, dstdir, info, template) do
    [_, _|lines] = "#{srcdir}#{info.file}.md" |> File.read! |> String.split("\n")
    stub = lines |> Earmark.to_html
    preview = stub
              |> Floki.parse
              |> Enum.filter(fn x -> elem(x, 0) == "p" end)
              |> Enum.map(fn x -> elem(x, 2) |> Floki.text end)
              |> Enum.join(" ")
              |> String.slice(0..200)
    Agent.update PreviewStorage, &[{info.file, preview}|&1]
    html = template
           |> render([title: info.title, date: info.date, tags: info.tags, contents: stub])
           |> genpage([page_title: info.title])

    File.open! "#{dstdir}#{info.file}.html", [:write, :utf8], &(IO.write &1, html)
    IO.puts "  GEN  #{srcdir}#{info.file}.md -> #{dstdir}#{info.file}.html"
  end

  def tag_task(dest, {k, v}, template) do
    tagdir = "#{dest}tags/#{k.name}/"
    pt = "Posts Tagged \"#{k.name}\""

    end
  end

  defp copy_assets(src, dest) do
    IO.puts "Cleaning assets and media directories..."
    File.rm_rf! "#{dest}assets/"
