diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2022-12-21 20:09:17 -0400 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2022-12-21 20:09:17 -0400 |
commit | f215bf15ae61f9ad08f8992cbf273f0b1d0ff6a0 (patch) | |
tree | ae79cc87f853762eac7d02059fbd368f73c91b0c /src/upd8.js | |
parent | 9412fefa5d53af171a91bd3b8ce958d35a7f87d7 (diff) |
polish up album & album extras nav
Diffstat (limited to 'src/upd8.js')
-rwxr-xr-x | src/upd8.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/upd8.js b/src/upd8.js index 0de724f2..20b0d28b 100755 --- a/src/upd8.js +++ b/src/upd8.js @@ -1068,10 +1068,6 @@ export function generateDocumentHTML(pageInfo, { let partContent; if (typeof cur.html === 'string') { - if (!cur.html) { - logWarn`Empty HTML in nav link ${JSON.stringify(cur)}`; - console.trace(); - } partContent = cur.html; } else { const attributes = { @@ -1099,6 +1095,8 @@ export function generateDocumentHTML(pageInfo, { partContent = html.tag('a', attributes, linkTitle); } + if (!partContent) continue; + const part = html.tag('span', {class: cur.divider === false && 'no-divider'}, partContent); |