private TagContent RenderBackgroundPreview(TemplatePage templatePage, int index) { var bg = string.IsNullOrWhiteSpace(templatePage.BackgroundImage) ? T.g()[ "no background | ", T.g("a", "href", $"{EditBackgroundCommand}?index={index}")["Pick background image"] ] : T.g()[ templatePage.BackgroundImage, " | ", T.g("a", "href", $"{EditBackgroundCommand}?index={index}")["Pick background image"], T.g("br/"), T.g("img", "src", templatePage.GetBackgroundPreviewUrl(_project), "width", "100%") ]; return(bg); }