logoUrl now resolves the proper path depth, for path depths > 1
[squeep-html-template-helper] / lib / template-helper.js
index 00937a0d554318e026b2083190379cead7eaa71c..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 = '',
@@ -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}
  */