mirror of
https://github.com/zadam/trilium.git
synced 2025-11-11 15:55:52 +01:00
Various share page improvements (#2471)
* Add clientside mermaid chart rendering Merry Christmas :) * Add katex math rendering client-side * Update page.ejs * Revert (wrong branch) * Add children nodes to all notes under hr * Add parent note button * Add note type in child note info * Fix parent, relative paths * Add code rendering, fix space in HTML class
This commit is contained in:
@@ -18,9 +18,15 @@
|
||||
<body>
|
||||
<div id="layout">
|
||||
<div id="main">
|
||||
<br>
|
||||
<% if (note.parents[0].noteId !== 'share' && note.parents.length != 0) { %>
|
||||
<nav class="parent-link">
|
||||
<a href="<%= note.parents[0].noteId %>">< Parent note (<%= note.parents[0].title %>)</a>
|
||||
</nav>
|
||||
<% } %>
|
||||
<h1 id="title"><%= note.title %></h1>
|
||||
|
||||
<div id="content" class="note-<%= note.type %> <% if (note.type === 'text') { %>ck-content<% } %>">
|
||||
<div id="content" class="note-<%= note.type %><% if (note.type === 'text') { %>ck-content<% } %>">
|
||||
<%- content %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user