b33c48c8db
Also add a lot of parenthesis
36 lines
No EOL
633 B
Elixir
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 |