Skip to content

Commit

Permalink
Reload error pages after publishing layout
Browse files Browse the repository at this point in the history
  • Loading branch information
leandrocp committed Oct 20, 2023
1 parent f568112 commit 0a94cc5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/beacon/loader.ex
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,8 @@ defmodule Beacon.Loader do
# TODO: load only used snippet helpers
:ok <- load_snippet_helpers(site),
:ok <- load_stylesheets(site),
{:ok, _module, _ast} <- Beacon.Loader.LayoutModuleLoader.load_layout!(layout) do
{:ok, _module, _ast} <- Beacon.Loader.LayoutModuleLoader.load_layout!(layout),
:ok <- load_error_pages(site) do
:ok
else
_ -> raise Beacon.LoaderError, message: "failed to load resources for layout #{layout.title} of site #{layout.site}"
Expand Down

0 comments on commit 0a94cc5

Please sign in to comment.