ck-content<% } %><% if (isEmpty) { %> no-content<% } %>">
@@ -200,7 +205,7 @@ content = content.replaceAll(headingRe, (...match) => {
<%= note.title %>
<% if (isEmpty && (!note.hasVisibleChildren() && note.type !== "book")) { %>This note has no content.
@@ -159,8 +164,8 @@ content = content.replaceAll(headingRe, (...match) => { <% const action = note.type === "book" ? "getChildNotes" : "getVisibleChildNotes"; for (const childNote of note[action]()) { - const isExternalLink = childNote.hasLabel("shareExternal"); - const linkHref = isExternalLink ? childNote.getLabelValue("shareExternal") : `./${childNote.shareId}`; + const isExternalLink = childNote.hasLabel("shareExternal") || childNote.hasLabel("shareExternalLink"); + const linkHref = isExternalLink ? childNote.getLabelValue("shareExternal") ?? childNote.getLabelValue("shareExternalLink") : `./${childNote.shareId}`; const target = isExternalLink ? ` target="_blank" rel="noopener noreferrer"` : ""; %>On This Page
-
<% for (const entry of toc) { %>
- <%- include('toc_item', {entry}) %>
+ <%- include("toc_item", {entry}) %>
<% } %>