From 0a94cc51773afc5c1864f162a1d8613adf3e4861 Mon Sep 17 00:00:00 2001 From: Leandro Pereira Date: Fri, 20 Oct 2023 12:28:41 -0400 Subject: [PATCH] Reload error pages after publishing layout --- lib/beacon/loader.ex | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/beacon/loader.ex b/lib/beacon/loader.ex index c95ddd49..f0adb6e9 100644 --- a/lib/beacon/loader.ex +++ b/lib/beacon/loader.ex @@ -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}"