Serve the home nav link from PocketBase, not a hard-coded copy
This commit is contained in:
1 parent
1bdb026669
commit
3fd4068762
8 files changed
+26
-40
No files matched your search
@@ -19,7 +19,6 @@ public class NavBuilderTests
|
||||
Page("board", "header", 2, "Vorstandsteam"),
|
||||
Page("home", "header", 1, "Start"),
|
||||
Page("imprint", "footer", 1, "Impressum"),
|
||||
Page("hidden", "", 1, "Unterseite"),
|
||||
};
|
||||
|
||||
var header = NavBuilder.Header(pages);
|
||||
@@ -56,13 +55,4 @@ public class NavBuilderTests
|
||||
header[0].Href.ShouldBe("/");
|
||||
header[1].Href.ShouldBe("/board");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void Pages_without_a_location_never_appear_in_a_menu()
|
||||
{
|
||||
var pages = new[] { Page("hidden", "", 1, "Unterseite") };
|
||||
|
||||
NavBuilder.Header(pages).ShouldBeEmpty();
|
||||
NavBuilder.Footer(pages).ShouldBeEmpty();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user