feat(demo): add a template with #excludeFromNoteMap (closes #3547)

This commit is contained in:
Elian Doran 2025-10-07 11:49:36 +03:00
parent d6e9acc149
commit 545c8648b7
No known key found for this signature in database
6 changed files with 145 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"formatVersion": 2,
"appVersion": "0.98.1",
"appVersion": "0.99.1",
"files": [
{
"isClone": false,
@ -60,6 +60,13 @@
"value": "dayGridMonth",
"isInheritable": false,
"position": 40
},
{
"type": "relation",
"name": "dateTemplate",
"value": "bRQvb9VCkc3t",
"isInheritable": false,
"position": 50
}
],
"dataFileName": "Journal.dat",
@ -75,7 +82,7 @@
"title": "Trilium Demo",
"notePosition": 20,
"prefix": null,
"isExpanded": true,
"isExpanded": false,
"type": "text",
"mime": "text/html",
"attributes": [
@ -6033,6 +6040,68 @@
]
}
]
},
{
"isClone": false,
"noteId": "fhNlr1V1o3d8",
"notePath": [
"root",
"fhNlr1V1o3d8"
],
"title": "Miscellaneous",
"notePosition": 30,
"prefix": null,
"isExpanded": false,
"type": "text",
"mime": "text/html",
"attributes": [
{
"type": "label",
"name": "iconClass",
"value": "bx bx-dots-horizontal-rounded",
"isInheritable": false,
"position": 10
}
],
"format": "html",
"attachments": [],
"dirFileName": "Miscellaneous",
"children": [
{
"isClone": false,
"noteId": "bRQvb9VCkc3t",
"notePath": [
"root",
"fhNlr1V1o3d8",
"bRQvb9VCkc3t"
],
"title": "Day Note Template",
"notePosition": 10,
"prefix": null,
"isExpanded": false,
"type": "text",
"mime": "text/html",
"attributes": [
{
"type": "label",
"name": "iconClass",
"value": "bx bx-notepad",
"isInheritable": false,
"position": 10
},
{
"type": "label",
"name": "excludeFromNoteMap",
"value": "",
"isInheritable": false,
"position": 20
}
],
"format": "html",
"dataFileName": "Day Note Template.html",
"attachments": []
}
]
}
]
},

View File

@ -637,6 +637,12 @@
</li>
</ul>
</li>
<li>Miscellaneous
<ul>
<li><a href="root/Miscellaneous/Day%20Note%20Template.html" target="detail">Day Note Template</a>
</li>
</ul>
</li>
</ul>
</li>
</ul>

View File

@ -0,0 +1,24 @@
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../../style.css">
<base target="_parent">
<title data-trilium-title>Day Note Template</title>
</head>
<body>
<div class="content">
<h1 data-trilium-h1>Day Note Template</h1>
<div class="ck-content">
<h2>☑️ Tasks</h2>
<ul>
<li data-list-item-id="e4b26220d6ce48997f1116dc1d1d83dc0">[…]</li>
</ul>
</div>
</div>
</body>
</html>

View File

@ -23,10 +23,18 @@
alert("Hello world");
}</code></pre>
<p>For larger pieces of code it is better to use a code note, which uses
a fully-fledged code editor (CodeMirror). For an example of a code note,

View File

@ -18,6 +18,10 @@
# This script opens 4 terminal windows.
@ -26,18 +30,38 @@
i="0"
while [ $i -lt 4 ]
do
xterm &amp;
@ -46,10 +70,22 @@ do
i=$[$i+1]
done</code></pre>
</div>
</div>

Binary file not shown.