File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1010 <PropertyGroup >
1111 <!-- Serve for Conditional logic for template instantiation -->
1212 <!-- You can put the version inside the PackageReference -->
13- <BlazorStaticVersion >1.0.0-beta.12 </BlazorStaticVersion >
13+ <BlazorStaticVersion >1.0.0-beta.13 </BlazorStaticVersion >
1414 </PropertyGroup >
1515
1616 <!-- #if (UseInTemplate)-->
Original file line number Diff line number Diff line change 117117 protected override void OnInitialized ()
118118 {
119119 if (string .IsNullOrWhiteSpace (FileName )) return ;
120- post = blazorStaticContentService .BlogPosts .FirstOrDefault (x => x .Url == FileName );
120+ post = blazorStaticContentService .Posts .FirstOrDefault (x => x .Url == FileName );
121121 }
122122}
Original file line number Diff line number Diff line change 99{
1010 <div class =" flex flex-wrap justify-evenly gap-1" >
1111 @{
12- var tagsWithCount = blazorStaticContentService .BlogPosts
12+ var tagsWithCount = blazorStaticContentService .Posts
1313 .SelectMany (x => x .FrontMatter .Tags )
1414 .GroupBy (x => x )
1515 .Select (group => new { Tag = group .Key , Count = group .Count () })
4444 protected override void OnInitialized ()
4545 {
4646 if (string .IsNullOrWhiteSpace (TagName )) return ;
47- posts = blazorStaticContentService .BlogPosts .Where (x => x .FrontMatter .Tags .Contains (TagName )).ToList ();
47+ posts = blazorStaticContentService .Posts .Where (x => x .FrontMatter .Tags .Contains (TagName )).ToList ();
4848 }
4949
5050}
Original file line number Diff line number Diff line change 5555 [Parameter ] public List <Post <BlogFrontMatter >> ? Posts { get ; set ; }
5656 protected override void OnInitialized ()
5757 {
58- posts = Posts != null ? Posts .OrderBy (x => x .FrontMatter .Published ).ToList () : blazorStaticContentService .BlogPosts ;
58+ posts = Posts != null ? Posts .OrderBy (x => x .FrontMatter .Published ).ToList () : blazorStaticContentService .Posts ;
5959 base .OnInitialized ();
6060 }
6161}
You can’t perform that action at this time.
0 commit comments