Skip to content

Commit

Permalink
fix: include page/layout behaviour in postlude
Browse files Browse the repository at this point in the history
  • Loading branch information
mhanberg committed Jun 14, 2023
1 parent 31d211d commit 06ef33e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/tableau/layout.ex
Expand Up @@ -49,6 +49,7 @@ defmodule Tableau.Layout do
postlude =
quote do
import Tableau.Document.Helper
@behaviour unquote(__MODULE__)
end

[page, parent, postlude]
Expand Down
7 changes: 6 additions & 1 deletion lib/tableau/page.ex
Expand Up @@ -49,6 +49,11 @@ defmodule Tableau.Page do
def __tableau_permalink__, do: unquote(opts[:permalink])
end

[page, parent, permalink]
postlude =
quote do
@behaviour unquote(__MODULE__)
end

[page, parent, permalink, postlude]
end
end

0 comments on commit 06ef33e

Please sign in to comment.