This repository has been archived on 2024-06-16. You can view files and clone it, but cannot push or open issues or pull requests.
mebe/lib/mebe_engine/models.ex
Mikko Ahlroth b33c48c8db Implement extra header support and multi author support
Also add a lot of parenthesis
2016-02-18 23:12:39 +02:00

36 lines
No EOL
633 B
Elixir

defmodule MebeEngine.Models do
@moduledoc """
This module contains the data models of the blog engine.
"""
defmodule PageData do
defstruct filename: nil,
title: nil,
headers: [],
content: nil
end
defmodule Post do
defstruct slug: nil,
title: nil,
date: nil,
tags: [],
content: nil,
short_content: nil,
order: 0,
has_more: false,
extra_headers: %{}
end
defmodule Page do
defstruct slug: nil,
title: nil,
content: nil,
extra_headers: %{}
end
defmodule MenuItem do
defstruct slug: nil,
title: nil
end
end