mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 18:12:29 +08:00
chore(share): introduce theme script
This commit is contained in:
parent
4fcb186022
commit
3def1a1e57
@ -57,6 +57,9 @@ const customServerYml = `- url: "{protocol}://{domain}:{port}/etapi"
|
|||||||
<% for (const cssRelation of note.getRelations("shareCss")) { %>
|
<% for (const cssRelation of note.getRelations("shareCss")) { %>
|
||||||
<link href="api/notes/<%= cssRelation.value %>/download" rel="stylesheet">
|
<link href="api/notes/<%= cssRelation.value %>/download" rel="stylesheet">
|
||||||
<% } %>
|
<% } %>
|
||||||
|
<% if (!note.isLabelTruthy("shareOmitDefaultCss")) { %>
|
||||||
|
<script type="module" src="assets/scripts.js"></script>
|
||||||
|
<% } %>
|
||||||
<% for (const jsRelation of note.getRelations("shareJs")) { %>
|
<% for (const jsRelation of note.getRelations("shareJs")) { %>
|
||||||
<script type="module" src="api/notes/<%= jsRelation.value %>/download"></script>
|
<script type="module" src="api/notes/<%= jsRelation.value %>/download"></script>
|
||||||
<% } %>
|
<% } %>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user