Skip to content

Commit 06ef33e

Browse files
committedJun 14, 2023
fix: include page/layout behaviour in postlude
1 parent 31d211d commit 06ef33e

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed
 

‎lib/tableau/layout.ex

+1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ defmodule Tableau.Layout do
4949
postlude =
5050
quote do
5151
import Tableau.Document.Helper
52+
@behaviour unquote(__MODULE__)
5253
end
5354

5455
[page, parent, postlude]

‎lib/tableau/page.ex

+6-1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ defmodule Tableau.Page do
4949
def __tableau_permalink__, do: unquote(opts[:permalink])
5050
end
5151

52-
[page, parent, permalink]
52+
postlude =
53+
quote do
54+
@behaviour unquote(__MODULE__)
55+
end
56+
57+
[page, parent, permalink, postlude]
5358
end
5459
end

0 commit comments

Comments
 (0)
Please sign in to comment.