Skip to content

Commit

Permalink
rename page.css to content.css
Browse files Browse the repository at this point in the history
  • Loading branch information
EdiWang committed Sep 4, 2023
1 parent af54fb7 commit a2bd406
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Moonglade.Web/Middleware/StyleSheetMiddleware.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public async Task Invoke(HttpContext context, IBlogConfig blogConfig, IMediator
var cssCode = blogConfig.CustomStyleSheetSettings.CssCode;
await WriteStyleSheet(context, cssCode);
}
else if (context.Request.Path == "/page.css" && context.Request.QueryString.HasValue)
else if (context.Request.Path == "/content.css" && context.Request.QueryString.HasValue)
{
// Get query string value
var qs = HttpUtility.ParseQueryString(context.Request.QueryString.Value!);
Expand Down
2 changes: 1 addition & 1 deletion src/Moonglade.Web/Pages/BlogPage.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
@section head{
@if (!string.IsNullOrWhiteSpace(Model.BlogPage.CssId))
{
<link href="~/page.css?id=@Model.BlogPage.CssId" rel="stylesheet" asp-append-version="true" />
<link href="~/content.css?id=@Model.BlogPage.CssId" rel="stylesheet" asp-append-version="true" />
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/Moonglade.Web/Pages/PagePreview.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
@section head{
@if (!string.IsNullOrWhiteSpace(Model.BlogPage.CssId))
{
<link href="~/page.css?id=@Model.BlogPage.CssId" rel="stylesheet" asp-append-version="true" />
<link href="~/content.css?id=@Model.BlogPage.CssId" rel="stylesheet" asp-append-version="true" />
}
}
@section metadescription{
Expand Down

0 comments on commit a2bd406

Please sign in to comment.