12 lines
283 B
Elixir
12 lines
283 B
Elixir
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
|