mirror of
https://github.com/zadam/trilium.git
synced 2025-11-11 07:45:51 +01:00
added #shareDisallowRobotIndexing label and reworked how the child-image exclusion works
This commit is contained in:
@@ -21,6 +21,9 @@
|
||||
<% for (const jsRelation of note.getRelations("shareJs")) { %>
|
||||
<script type="module" src="api/notes/<%= jsRelation.value %>/download"></script>
|
||||
<% } %>
|
||||
<% if (note.hasLabel('shareDisallowRobotIndexing')) { %>
|
||||
<meta name="robots" content="noindex,follow" />
|
||||
<% } %>
|
||||
<%- header %>
|
||||
<title><%= note.title %></title>
|
||||
</head>
|
||||
|
||||
@@ -8,12 +8,10 @@
|
||||
|
||||
<% if (note.hasChildren()) { %>
|
||||
<ul>
|
||||
<% note.getChildNotes().forEach(function (childNote) { %>
|
||||
<% if (!childNote.hasLabel("shareHiddenFromTree")) { %>
|
||||
<% note.getVisibleChildNotes().forEach(function (childNote) { %>
|
||||
<li>
|
||||
<%- include('tree_item', {note: childNote}) %>
|
||||
</li>
|
||||
<% } %>
|
||||
<% }) %>
|
||||
</ul>
|
||||
<% } %>
|
||||
|
||||
Reference in New Issue
Block a user