<%= note.title %>
<% if (isEmpty && (!note.hasVisibleChildren() && note.type !== "book")) { %>This note has no content.
<% } else { %> <% content = content.replace(/api/notes/<%= note.getRelation("shareFavicon").value %>/download<% } else { %>../favicon.ico<% } %>"> <% if (!isDev && !note.isLabelTruthy("shareOmitDefaultCss")) { %> <% } %> <% for (const cssRelation of note.getRelations("shareCss")) { %> <% } %> <% for (const jsRelation of note.getRelations("shareJs")) { %> <% } %> <% if (note.hasLabel("shareDisallowRobotIndexing")) { %> <% } %> <% const pageTitle = `${note.title}${note.noteId !== subRoot.note.noteId ? ` - ${subRoot.note.title}` : ""}`; // Setup some key OpenGraph variables const openGraphColor = subRoot.note.getLabelValue("shareOpenGraphColor"); const openGraphURL = subRoot.note.getLabelValue("shareOpenGraphURL"); const openGraphDomain = subRoot.note.getLabelValue("shareOpenGraphDomain"); let openGraphImage = subRoot.note.getLabelValue("shareOpenGraphImage"); // Relation takes priority and requires some altering if (subRoot.note.hasRelation("shareOpenGraphImage")) { openGraphImage = `api/images/${subRoot.note.getRelation("shareOpenGraphImage").value}/image.png`; } %>
This note has no content.
<% } else { %> <% content = content.replace(/