Skip to content

Commit

Permalink
Update Markdown.Blog.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
mythz committed Sep 15, 2023
1 parent 13ac6d2 commit 6fe312f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MyApp/Markdown.Blog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public List<MarkdownFileInfo> GetPosts(string? author = null, string? tag = null

public string GetPostLink(MarkdownFileInfo post) => $"posts/{post.Slug}";

public string GetPostsLink() => "posts";
public string GetPostsLink() => "posts/";
public string? GetAuthorLink(string? author) => author != null && Authors.Any(x => x.Name.Equals(author, StringComparison.OrdinalIgnoreCase))
? $"posts/author/{author.GenerateSlug()}"
: null;
Expand Down

0 comments on commit 6fe312f

Please sign in to comment.