projects
/
squeep-html-template-helper
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
logoUrl now resolves the proper path depth, for path depths > 1
[squeep-html-template-helper]
/
lib
/
template-helper.js
diff --git
a/lib/template-helper.js
b/lib/template-helper.js
index 00937a0d554318e026b2083190379cead7eaa71c..af9547e22eed36293bdf6eadaa138658389c8dbc 100644
(file)
--- a/
lib/template-helper.js
+++ b/
lib/template-helper.js
@@
-145,7
+145,7
@@
${spacer}</nav>` : '';
* @returns {String}
*/
function htmlHeader(pagePathLevel, ctx, options) {
* @returns {String}
*/
function htmlHeader(pagePathLevel, ctx, options) {
- const rootPathPfx = '../'.repeat(
Math.max(pagePathLevel - 1, 0)
);
+ const rootPathPfx = '../'.repeat(
pagePathLevel
);
const {
logoUrl = '',
pageTitle = '',
const {
logoUrl = '',
pageTitle = '',
@@
-281,9
+281,9
@@
${UL(ctx.notifications, 1)}
* @param {Object[]=} options.navLinks
* @param {String[]=} options.footerEntries
* @param {String=} options.errorHeading
* @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.notificationHeading
- * @param {String=} options.notificationContent
+ * @param {String
[]
=} options.notificationContent
* @param {String[]} main - contents
* @returns {String}
*/
* @param {String[]} main - contents
* @returns {String}
*/