Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 9ddffee

Browse files
committedOct 7, 2024·
Blog to version beta.13
1 parent ec30aff commit 9ddffee

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed
 

‎BlazorStaticMinimalBlog.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
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)-->

‎Components/Pages/Blog.razor

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,6 @@
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
}

‎Components/Pages/Tags.razor

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
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() })
@@ -44,7 +44,7 @@
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
}

‎Components/PostsList.razor

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
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
}

0 commit comments

Comments
 (0)
Please sign in to comment.