From: Justin Wind Date: Sat, 15 Jan 2022 23:09:26 +0000 (-0800) Subject: logoUrl now resolves the proper path depth, for path depths > 1 X-Git-Tag: v1.0.2~1 X-Git-Url: http://git.squeep.com/?p=squeep-html-template-helper;a=commitdiff_plain;h=3aff37bcc558d1ca7bc3d9a4aeec9855f9598b1c logoUrl now resolves the proper path depth, for path depths > 1 --- 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 = '',