Minor fixes for new options

This commit is contained in:
Zerebos 2024-06-06 19:10:56 -04:00
parent 465468a5a3
commit 2485f20d5c
No known key found for this signature in database
GPG Key ID: 79BE50E3D28D5686
3 changed files with 5 additions and 4 deletions

View File

@ -1,6 +1,6 @@
{
"name": "trilium.rocks",
"version": "1.0.2",
"version": "1.0.3",
"description": "",
"main": "index.js",
"scripts": {

View File

@ -14,6 +14,7 @@
justify-content: flex-end;
position: sticky;
top: 0;
overflow-y: auto;
}
#right-pane {

View File

@ -87,7 +87,7 @@ const customServerYml = `- url: "{protocol}://{domain}:{port}/etapi"
<meta name="twitter:description" content="<%= note.getLabelValue("shareDescription") %>">
<meta name="twitter:image" content="<%= openGraphImage %>">
<!-- Meta Tags Generated via https://opengraph.dev -->
<meta name="theme-color" content="<%= openGraphColor %>>">
<meta name="theme-color" content="<%= openGraphColor %>">
</head>
<%
const shareRootLink = subRoot.note.hasLabel("shareRootLink") ? subRoot.note.getLabelValue("shareRootLink") : `./${subRoot.note.noteId}`;
@ -103,7 +103,7 @@ content = content.replaceAll(headingRe, (...match) => {
%>
<body data-note-id="<%= note.noteId %>" class="type-<%= note.type %><%= themeClass %>" data-ancestor-note-id="<%= subRoot.note.noteId %>">
<div id="mobile-header">
<a href="<%= shareRootLink %>>">
<a href="<%= shareRootLink %>">
<% if (subRoot.note.hasRelation("shareLogo")) { %>
<img src="api/images/<%= subRoot.note.getRelation("shareLogo").value %>/download" alt="Logo" />
<% } %>
@ -115,7 +115,7 @@ content = content.replaceAll(headingRe, (...match) => {
<div id="left-pane">
<div id="navigation">
<div id="site-header">
<a href="<%= shareRootLink %>>">
<a href="<%= shareRootLink %>">
<% if (subRoot.note.hasRelation("shareLogo")) { %>
<img src="api/images/<%= subRoot.note.getRelation("shareLogo").value %>/download" alt="Logo" />
<% } %>