mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 10:11:10 +00:00
Renders themed pages as swappable sections with path-mirrored template scopes and a Razor fallback
This commit is contained in:
1 parent
f17e685239
commit
e37bb3ecc6
24 files changed
+351
-187
No files matched your search
@@ -22,6 +22,7 @@
|
||||
<link rel="stylesheet" href="~/css/dialog.css" asp-append-version="true" />
|
||||
<link rel="stylesheet" href="~/css/textbox.css" asp-append-version="true" />
|
||||
<link rel="stylesheet" href="~/Lumina.Presentation.Web.styles.css" asp-append-version="true" />
|
||||
@await RenderSectionAsync("Head", required: false) <!--needed for themes templates css files-->
|
||||
</head>
|
||||
<body>
|
||||
<div id="page">
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
@model Lumina.Presentation.Web.Common.DTO.Themes.ThemeViewDto
|
||||
|
||||
@section Head {
|
||||
@if (!string.IsNullOrEmpty(Model.AssetBase))
|
||||
{
|
||||
<link rel="stylesheet" href="@Model.AssetBase/theme.css" />
|
||||
}
|
||||
}
|
||||
|
||||
@Html.Raw(Model.Content)
|
||||
|
||||
@section Scripts {
|
||||
@Html.Raw(Model.Script)
|
||||
}
|
||||
Reference in new issue
Block a user