From 6e2548a7ca21949d5006f1b04896a0e8463744e4 Mon Sep 17 00:00:00 2001
From: Jim Kerslake <39943820+JimKerslake@users.noreply.github.com>
Date: Wed, 20 Aug 2025 12:12:12 +0100
Subject: [PATCH] #482 move rendering location of inlinescript
---
.../Views/Page/Index.cshtml | 6 ++++++
.../Views/Page/PageScriptsPartial.cshtml | 7 +------
2 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/src/cloudscribe.SimpleContent.CompiledViews.Bootstrap5/Views/Page/Index.cshtml b/src/cloudscribe.SimpleContent.CompiledViews.Bootstrap5/Views/Page/Index.cshtml
index 7536e1c5b..bbde431bc 100644
--- a/src/cloudscribe.SimpleContent.CompiledViews.Bootstrap5/Views/Page/Index.cshtml
+++ b/src/cloudscribe.SimpleContent.CompiledViews.Bootstrap5/Views/Page/Index.cshtml
@@ -57,6 +57,12 @@
}
+
+ @* User custom inline script - render after all external JS resources *@
+ @if (Model.CurrentPage?.Script != null && !string.IsNullOrWhiteSpace(Model.CurrentPage.Script))
+ {
+
+ }
}
diff --git a/src/cloudscribe.SimpleContent.CompiledViews.Bootstrap5/Views/Page/PageScriptsPartial.cshtml b/src/cloudscribe.SimpleContent.CompiledViews.Bootstrap5/Views/Page/PageScriptsPartial.cshtml
index fe7519213..4574fb621 100644
--- a/src/cloudscribe.SimpleContent.CompiledViews.Bootstrap5/Views/Page/PageScriptsPartial.cshtml
+++ b/src/cloudscribe.SimpleContent.CompiledViews.Bootstrap5/Views/Page/PageScriptsPartial.cshtml
@@ -1,8 +1,3 @@
@model cloudscribe.SimpleContent.Web.ViewModels.PageViewModel
-
-
-@if (Model.CurrentPage?.Script != null && !string.IsNullOrWhiteSpace(Model.CurrentPage.Script))
-{
-
-}
\ No newline at end of file
+
\ No newline at end of file