mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-30 19:52:28 +08:00
Minor fixes for new options
This commit is contained in:
parent
465468a5a3
commit
2485f20d5c
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "trilium.rocks",
|
"name": "trilium.rocks",
|
||||||
"version": "1.0.2",
|
"version": "1.0.3",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
position: sticky;
|
position: sticky;
|
||||||
top: 0;
|
top: 0;
|
||||||
|
overflow-y: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
#right-pane {
|
#right-pane {
|
||||||
|
@ -87,7 +87,7 @@ const customServerYml = `- url: "{protocol}://{domain}:{port}/etapi"
|
|||||||
<meta name="twitter:description" content="<%= note.getLabelValue("shareDescription") %>">
|
<meta name="twitter:description" content="<%= note.getLabelValue("shareDescription") %>">
|
||||||
<meta name="twitter:image" content="<%= openGraphImage %>">
|
<meta name="twitter:image" content="<%= openGraphImage %>">
|
||||||
<!-- Meta Tags Generated via https://opengraph.dev -->
|
<!-- Meta Tags Generated via https://opengraph.dev -->
|
||||||
<meta name="theme-color" content="<%= openGraphColor %>>">
|
<meta name="theme-color" content="<%= openGraphColor %>">
|
||||||
</head>
|
</head>
|
||||||
<%
|
<%
|
||||||
const shareRootLink = subRoot.note.hasLabel("shareRootLink") ? subRoot.note.getLabelValue("shareRootLink") : `./${subRoot.note.noteId}`;
|
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 %>">
|
<body data-note-id="<%= note.noteId %>" class="type-<%= note.type %><%= themeClass %>" data-ancestor-note-id="<%= subRoot.note.noteId %>">
|
||||||
<div id="mobile-header">
|
<div id="mobile-header">
|
||||||
<a href="<%= shareRootLink %>>">
|
<a href="<%= shareRootLink %>">
|
||||||
<% if (subRoot.note.hasRelation("shareLogo")) { %>
|
<% if (subRoot.note.hasRelation("shareLogo")) { %>
|
||||||
<img src="api/images/<%= subRoot.note.getRelation("shareLogo").value %>/download" alt="Logo" />
|
<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="left-pane">
|
||||||
<div id="navigation">
|
<div id="navigation">
|
||||||
<div id="site-header">
|
<div id="site-header">
|
||||||
<a href="<%= shareRootLink %>>">
|
<a href="<%= shareRootLink %>">
|
||||||
<% if (subRoot.note.hasRelation("shareLogo")) { %>
|
<% if (subRoot.note.hasRelation("shareLogo")) { %>
|
||||||
<img src="api/images/<%= subRoot.note.getRelation("shareLogo").value %>/download" alt="Logo" />
|
<img src="api/images/<%= subRoot.note.getRelation("shareLogo").value %>/download" alt="Logo" />
|
||||||
<% } %>
|
<% } %>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user