This commit is contained in:
mmrbnjd
2024-11-20 12:10:17 +03:30
parent fe359535f7
commit 0d56b1ecc1
5 changed files with 5 additions and 14 deletions

View File

@@ -4,6 +4,7 @@
{ {
public int ID { get; set; } public int ID { get; set; }
public string Title { get; set; } public string Title { get; set; }
public string? PageTitle { get; set; }
public string Text { get; set; } public string Text { get; set; }
public string? Photo { get; set; } public string? Photo { get; set; }
public string Date { get; set; } public string Date { get; set; }

View File

@@ -80,7 +80,8 @@ namespace Back.Services
Time=s.Time, Time=s.Time,
Tags= s.Tags, Tags= s.Tags,
DescriptionTag=s.DescriptionTag, DescriptionTag=s.DescriptionTag,
keywordsTag=s.keywordsTag keywordsTag=s.keywordsTag,
PageTitle=string.IsNullOrEmpty(s.PageTitle) ?s.Title : s.PageTitle,
}).FirstOrDefaultAsync(); }).FirstOrDefaultAsync();
return result; return result;
} }

View File

@@ -17,6 +17,7 @@ namespace Shared.DTOs
{ {
public int ID { get; set; } public int ID { get; set; }
public string Title { get; set; } public string Title { get; set; }
public string PageTitle { get; set; }
public string Text { get; set; } public string Text { get; set; }
public string? Photo { get; set; } public string? Photo { get; set; }
public string Date { get; set; } public string Date { get; set; }

View File

@@ -4,7 +4,7 @@
@using global::Shared.DTOs @using global::Shared.DTOs
@using moadiran.Layout @using moadiran.Layout
@inject NavigationManager Navigation @inject NavigationManager Navigation
<PageTitle>@Item?.Title</PageTitle> <PageTitle>@Item?.PageTitle</PageTitle>

View File

@@ -2,7 +2,6 @@
@inherits LayoutComponentBase @inherits LayoutComponentBase
@inject Fixedvalues fv; @inject Fixedvalues fv;
<Lheader /> <Lheader />
<div id="smooth-wrapper"> <div id="smooth-wrapper">
<div id="smooth-content"> <div id="smooth-content">
@@ -10,15 +9,4 @@
<Lfooter /> <Lfooter />
</div> </div>
</div> </div>
@code {
protected override async Task OnAfterRenderAsync(bool firstRender)
{
if(firstRender)
await fv.SetUlr("Main");
await base.OnAfterRenderAsync(firstRender);
}
}