Skip to content

Commit

Permalink
chore: move layouts
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewBabbitt97 committed Feb 16, 2023
1 parent de2676b commit 44267a2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/BlazorDocs.Sample/Docs/Index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Blazor Docs
layout: MainLayout
layout: AllProducts
---
# Header
Content
2 changes: 1 addition & 1 deletion src/BlazorDocs.SourceGenerators/MarkdownSourceGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ private string GenerateMarkdownCode(MarkdownSourceGenerationOptions options, Sou
builder.AppendLine($"namespace {GetNamespaceFromPath(options.RootNamespace, item.FilePath)}");
builder.AppendLine("{");
builder.AppendLine($" [Route(\"{GetRouteFromPath(item.FilePath)}\")]");
builder.AppendLine($" [Layout(typeof({configTheme}.Shared.{pageLayout}))]");
builder.AppendLine($" [Layout(typeof({configTheme}.Layouts.{pageLayout}))]");
builder.AppendLine($" public class {GetClassNameFromPath(item.FilePath)} : ComponentBase");
builder.AppendLine(" {");
builder.AppendLine(" [Inject]");
Expand Down

0 comments on commit 44267a2

Please sign in to comment.