mirror of
https://github.com/zadam/trilium.git
synced 2025-11-08 06:15:48 +01:00
Adjust shared notes search api
This commit is contained in:
@@ -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) { %>
|
||||
|
||||
@@ -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; %>
|
||||
|
||||
Reference in New Issue
Block a user