sloane.sh/lib/sloane_sh/assets/post.ex

13 lines
283 B
Elixir
Raw Normal View History

2024-02-24 13:16:56 -05:00
defmodule SloaneSH.Assets.Post do
use SloaneSH.Assets.Markdown, type: :post
require Logger
def handle_attrs(_cfg, path, _data, attrs) do
unless Map.has_key?(attrs, :date) do
Logger.warning("Post missing date property: #{inspect(path)}")
end
attrs
end
end