     end)
   end
 
-  defp build_(:launch_tasks, dir, :parallel) do
+  defp build_(:launch_tasks, :parallel, dir) do
     IO.puts "⚡️  [97mStarting parallel build...[0m"
     t1 = Task.async fn -> build_pages dir, :parallel end
     t2 = Task.async fn -> build_posts dir, :parallel end


  @dowstr {"Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"}
  @monabbr {"", "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"}

  ##
  ## Build
  ##

  def build(dir, mode) do
    dir = String.ends_with?(dir, "/") && dir || dir <> "/"


      {time, _} = :timer.tc(fn ->
        compile_nav
        build_ :launch_tasks, mode, dir
      end)
      IO.puts "Build process took #{time}us."
      copy_assets dir
