Skip to content

Commit 1c78914

Browse files
committed
fix: include toke.site.pages earlier in the pipeline
Inserts `:pages` into the site token before they are rendered. Useful for pages that want to do a site listing.
1 parent 3ca0fa2 commit 1c78914

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/mix/tasks/tableau.build.ex

+2
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ defmodule Mix.Tasks.Tableau.Build do
3939
{mod, Map.new(Nodable.opts(mod) || [])}
4040
end
4141

42+
token = put_in(token.site[:pages], Enum.map(pages, fn {_mod, page} -> page end))
43+
4244
pages =
4345
pages
4446
|> Task.async_stream(fn {mod, page} ->

0 commit comments

Comments
 (0)