rearrange navLinks, update readme
[squeep-html-template-helper] / lib / template-helper.js
index 747c5258d571124e342cf9945a8b71d5b5d5728a..e48cdb4fc5e59e17e5179b35a0339f357ba657be 100644 (file)
@@ -390,11 +390,11 @@ function htmlPage(pagePathLevel, ctx, options, main = []) {
     const logoutRedirect = ctx?.url ? `?r=${encodeURIComponent(ctx.url)}` : '';
     const adminPath = (pagePathLevel > 0) ? `${'../'.repeat(pagePathLevel - 1)}` : 'admin/';
     options.navLinks.push({
+      text: 'Account',
+      href: `${adminPath}settings`,
+    }, {
       text: `Logout (${user})`,
       href: `${adminPath}logout${logoutRedirect}`,
-    }, {
-      text: 'Settings',
-      href: `${adminPath}settings`,
     });
   }