X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=lib%2Ftemplate-helper.js;h=af9547e22eed36293bdf6eadaa138658389c8dbc;hb=3aff37bcc558d1ca7bc3d9a4aeec9855f9598b1c;hp=122a3a09783b8aad2306d238bb134dc02bfb6c47;hpb=1d150b8050db306991685cfbd294ef8f3b714fca;p=squeep-html-template-helper diff --git a/lib/template-helper.js b/lib/template-helper.js index 122a3a0..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 = '',