     File.open(path, [:write, :exclusive, :utf8])
   end
 
+  @spec generate_contents(keyword(), DateTime.t()) :: binary()
+  defp generate_contents(opts, now) do
+    """
+    ---
+    title: #{opts[:title]}
+    date: #{Timex.format!(now, "{YYYY}-{0M}-{0D} {h24}:{m}:{s}")}
+    tags: #{opts |> Keyword.get_values(:tag) |> Enum.join(", ")}
+    ---
+
+    TODO: Write some text here!
+    """
+  end
+
   def short_help(_task), do: "Add a new blog post to the current project"
 
   def synopsis(_task), do: "serum newpost [OPTIONS]"

         path = full_path(opts[:output], now),
         {:ok, file} <- create_file(path)
    do
      # do some work here
      File.close(file)
      msg_gen(path)
      {:cli_exit, 0}


  @spec current_datetime() :: {:ok, DateTime.t()} | :error
  defp current_datetime do
    {:ok, Timex.local()}
  rescue
    _ -> :error
  end
