();
- await builder.Build().RunAsync();
+ return builder.Build().RunAsync();
}
}
}
diff --git a/DragonFruit.Sakura/Wiki/Wiki.razor b/DragonFruit.Sakura/Wiki/Wiki.razor
index 0b5edf3..93d4316 100644
--- a/DragonFruit.Sakura/Wiki/Wiki.razor
+++ b/DragonFruit.Sakura/Wiki/Wiki.razor
@@ -19,7 +19,7 @@ else
-
+
@@ -70,13 +70,13 @@ else
}
- @PageContent.Content
+ @PageContent?.Content
@if (PageMetadata != null)
{
-
+
@@ -88,7 +88,9 @@ else
@foreach (var author in PageMetadata.Authors)
{
- @author.Username[0]
+
+ @(string.IsNullOrEmpty(author.AvatarUrl) ? char.ToUpperInvariant(author.Username[0]) : null)
+
}
diff --git a/DragonFruit.Sakura/Wiki/Wiki.razor.cs b/DragonFruit.Sakura/Wiki/Wiki.razor.cs
index 9703108..1e0311b 100644
--- a/DragonFruit.Sakura/Wiki/Wiki.razor.cs
+++ b/DragonFruit.Sakura/Wiki/Wiki.razor.cs
@@ -94,12 +94,12 @@ private List GenerateBreadcrumbs()
if (pathSegments is null || !pathSegments.Any())
{
- return new List { homeSegment };
+ return [homeSegment];
}
// split the url into a set of segments representing the location of each page (i.e. the topmost page has to include all the parents)
var segmentArrays = Enumerable.Range(1, pathSegments.Length).Select(i => new ArraySegment(pathSegments, 0, i));
- return segmentArrays.Select(x => new BreadcrumbItem(x.Last(), $"/wiki/{string.Join("/", x)}")).Prepend(homeSegment).ToList();
+ return segmentArrays.Select(x => new BreadcrumbItem(x.Last(), $"/{string.Join("/", x)}")).ToList();
}
}
}
diff --git a/DragonFruit.Sakura/wwwroot/styles/global.css b/DragonFruit.Sakura/wwwroot/styles/global.css
index 4e08357..dfce80c 100644
--- a/DragonFruit.Sakura/wwwroot/styles/global.css
+++ b/DragonFruit.Sakura/wwwroot/styles/global.css
@@ -11,6 +11,8 @@ iframe {
.sakura-hero, .sakura-full-height-section {
min-height: 100vh;
+ background-size: cover;
+ background-repeat: no-repeat;
}
.sakura-full-height-section {
diff --git a/DragonFruit.Sakura/wwwroot/styles/overrides.css b/DragonFruit.Sakura/wwwroot/styles/overrides.css
index a8bf744..faa5422 100644
--- a/DragonFruit.Sakura/wwwroot/styles/overrides.css
+++ b/DragonFruit.Sakura/wwwroot/styles/overrides.css
@@ -1,3 +1,7 @@
.mud-button {
text-transform: none !important;
+}
+
+.mud-avatar {
+ align-items: unset !important;
}
\ No newline at end of file