import base/mixins $authorPath = printf("/author/%s", ActiveAuthor) a[href="/"] h1 Aite RP ul if User.LoggedIn +menuitem("/page/create", "+", "Create") ul each $category in Categories +menuitem($category.Path, $category.Icon, $category.Plural) ul if ActiveTag.ID +menuitem(ActiveTag.Path, ActiveTag.Icon, ActiveTag.Name) if ActiveDate +menuitem(ActiveDatePath, "D", ActiveDate) if ActiveAuthor +menuitem($authorPath, "A", formatUserID(ActiveAuthor)) ul +menuitem("/tags/", "T", "Tags")