     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


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

      }])
    rescue
      _ in MatchError -> (fn ->
        IO.puts "[31mError while parsing `#{dir}posts/#{h}.md`: invalid markdown format[0m"
        exit "error while building blog posts"
      end).()
    end
