Adjust shared notes search api

This commit is contained in:
Zack Rauen
2023-10-08 14:54:37 -04:00
parent d259931bd2
commit ec6b8476f9
3 changed files with 13 additions and 14 deletions

View File

@@ -32,7 +32,7 @@
<%- header %>
<title><%= note.title %></title>
</head>
<body data-note-id="<%= note.noteId %>" data-wtf="true">
<body data-note-id="<%= note.noteId %>" data-ancestor-note-id="<%= subRoot.note.noteId %>">
<div id="layout">
<div id="main">
<% if (note.parents[0].noteId !== '_share' && note.parents.length !== 0) { %>

View File

@@ -2,7 +2,6 @@
const isExternalLink = note.hasLabel('shareExternalLink');
const linkHref = isExternalLink ? note.getLabelValue('shareExternalLink') : `./${note.shareId}`;
const target = isExternalLink ? ` target="_blank" rel="noopener noreferrer"` : '';
console.log(note.shareId, note.title, isExternalLink, linkHref, target);
%>
<p>
<% const titleWithPrefix = (branch.prefix ? `${branch.prefix} - ` : '') + note.title; %>