Merge pull request #4617 from sbwalker/dev
fix #4607 - site level scripts added twice in static rendering
This commit is contained in:
commit
36ad1ceef2
@ -44,7 +44,6 @@
|
||||
}
|
||||
|
||||
// head content
|
||||
AddHeadContent(headcontent, PageState.Site.HeadContent);
|
||||
if (!string.IsNullOrEmpty(PageState.Site.HeadContent))
|
||||
{
|
||||
headcontent = AddHeadContent(headcontent, PageState.Site.HeadContent);
|
||||
|
@ -534,9 +534,9 @@
|
||||
|
||||
private string ParseScripts(string content)
|
||||
{
|
||||
// iterate scripts
|
||||
var scripts = "";
|
||||
if (!string.IsNullOrEmpty(content))
|
||||
// in interactive render mode, parse scripts from content and inject into page
|
||||
if (_renderMode == RenderModes.Interactive && !string.IsNullOrEmpty(content))
|
||||
{
|
||||
var index = content.IndexOf("<script");
|
||||
while (index >= 0)
|
||||
|
Reference in New Issue
Block a user