diff --git a/lib/jol/blog/post.ex b/lib/jol/blog/post.ex index e081c50..71a95a4 100644 --- a/lib/jol/blog/post.ex +++ b/lib/jol/blog/post.ex @@ -1,8 +1,8 @@ defmodule JOL.Blog.Post do - @enforce_keys [:title, :body, :draft, :date, :tags] - defstruct [:title, :body, :draft, :date, :tags] + @enforce_keys [:author, :draft, :title, :body, :tags, :date] + defstruct [:author, :draft, :title, :body, :tags, :date] def build(_filename, attrs, body) do - struct!(__MODULE__, [body: body] ++ Map.to_list(attrs)) + struct!(__MODULE__, [author: "Jessica Phoenix Canady", body: body] ++ Map.to_list(attrs)) end end