This commit is contained in:
parent
2fa6e70af1
commit
6841623e23
17 changed files with 2306 additions and 148 deletions
|
|
@ -177,8 +177,7 @@ namespace Catcrafts {
|
|||
// restarting at cc-link-0 and colliding with the content links —
|
||||
// getElementById would then return whichever appeared first in the
|
||||
// document and half the links would navigate to the wrong place.
|
||||
const RouteKind navKind =
|
||||
route.kind == RouteKind::LegacyBlog ? RouteKind::Posts : route.kind;
|
||||
const RouteKind navKind = NavKindFor(route.kind);
|
||||
Dom::HtmlElementPtr header("cc-header");
|
||||
if (header.ptr != 0) {
|
||||
header.SetInnerHTML(TagLinks(Views::RenderNav(navKind).View(), linkTargets));
|
||||
|
|
|
|||
Loading…
Reference in a new issue