X-Git-Url: http://git.squeep.com/?p=squeep-html-template-helper;a=blobdiff_plain;f=lib%2Ftemplate-helper.js;h=af9547e22eed36293bdf6eadaa138658389c8dbc;hp=00937a0d554318e026b2083190379cead7eaa71c;hb=3aff37bcc558d1ca7bc3d9a4aeec9855f9598b1c;hpb=4ab85bf22ece77cccd4e92435208bca5858816f6 diff --git a/lib/template-helper.js b/lib/template-helper.js index 00937a0..af9547e 100644 --- a/lib/template-helper.js +++ b/lib/template-helper.js @@ -145,7 +145,7 @@ ${spacer}` : ''; * @returns {String} */ function htmlHeader(pagePathLevel, ctx, options) { - const rootPathPfx = '../'.repeat(Math.max(pagePathLevel - 1, 0)); + const rootPathPfx = '../'.repeat(pagePathLevel); const { logoUrl = '', pageTitle = '', @@ -281,9 +281,9 @@ ${UL(ctx.notifications, 1)} * @param {Object[]=} options.navLinks * @param {String[]=} options.footerEntries * @param {String=} options.errorHeading - * @param {String=} options.errorContent + * @param {String[]=} options.errorContent * @param {String=} options.notificationHeading - * @param {String=} options.notificationContent + * @param {String[]=} options.notificationContent * @param {String[]} main - contents * @returns {String} */