logoUrl now resolves the proper path depth, for path depths > 1
authorJustin Wind <justin.wind+git@gmail.com>
Sat, 15 Jan 2022 23:09:26 +0000 (15:09 -0800)
committerJustin Wind <justin.wind+git@gmail.com>
Sat, 15 Jan 2022 23:09:26 +0000 (15:09 -0800)
lib/template-helper.js

index 122a3a09783b8aad2306d238bb134dc02bfb6c47..af9547e22eed36293bdf6eadaa138658389c8dbc 100644 (file)
@@ -145,7 +145,7 @@ ${spacer}</nav>` : '';
  * @returns {String}
  */
 function htmlHeader(pagePathLevel, ctx, options) {
-  const rootPathPfx = '../'.repeat(Math.max(pagePathLevel - 1, 0));
+  const rootPathPfx = '../'.repeat(pagePathLevel);
   const {
     logoUrl = '',
     pageTitle = '',