File tree 4 files changed +5
-5
lines changed
4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 10
10
<PropertyGroup >
11
11
<!-- Serve for Conditional logic for template instantiation -->
12
12
<!-- You can put the version inside the PackageReference -->
13
- <BlazorStaticVersion >1.0.0-beta.12 </BlazorStaticVersion >
13
+ <BlazorStaticVersion >1.0.0-beta.13 </BlazorStaticVersion >
14
14
</PropertyGroup >
15
15
16
16
<!-- #if (UseInTemplate)-->
Original file line number Diff line number Diff line change 117
117
protected override void OnInitialized ()
118
118
{
119
119
if (string .IsNullOrWhiteSpace (FileName )) return ;
120
- post = blazorStaticContentService .BlogPosts .FirstOrDefault (x => x .Url == FileName );
120
+ post = blazorStaticContentService .Posts .FirstOrDefault (x => x .Url == FileName );
121
121
}
122
122
}
Original file line number Diff line number Diff line change 9
9
{
10
10
<div class =" flex flex-wrap justify-evenly gap-1" >
11
11
@{
12
- var tagsWithCount = blazorStaticContentService .BlogPosts
12
+ var tagsWithCount = blazorStaticContentService .Posts
13
13
.SelectMany (x => x .FrontMatter .Tags )
14
14
.GroupBy (x => x )
15
15
.Select (group => new { Tag = group .Key , Count = group .Count () })
44
44
protected override void OnInitialized ()
45
45
{
46
46
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 ();
48
48
}
49
49
50
50
}
Original file line number Diff line number Diff line change 55
55
[Parameter ] public List <Post <BlogFrontMatter >> ? Posts { get ; set ; }
56
56
protected override void OnInitialized ()
57
57
{
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 ;
59
59
base .OnInitialized ();
60
60
}
61
61
}
You can’t perform that action at this time.
0 commit comments