Skip to content

Build your personal knowledge base with Trilium Notes

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

Elian Doran545c8648b7db
diff --git a/apps/edit-docs/demo/!!!meta.json b/apps/edit-docs/demo/!!!meta.json
index f5f319d92a..57b5377063 100644
--- a/apps/edit-docs/demo/!!!meta.json
+++ b/apps/edit-docs/demo/!!!meta.json
@@ -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": []
+ }
+ ]
}
]
},
diff --git a/apps/edit-docs/demo/navigation.html b/apps/edit-docs/demo/navigation.html
index 62e56a007c..1d4d5d57b8 100644
--- a/apps/edit-docs/demo/navigation.html
+++ b/apps/edit-docs/demo/navigation.html
@@ -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>
diff --git a/apps/edit-docs/demo/root/Miscellaneous/Day Note Template.html b/apps/edit-docs/demo/root/Miscellaneous/Day Note Template.html
new file mode 100644
index 0000000000..8f2333bf02
--- /dev/null
+++ b/apps/edit-docs/demo/root/Miscellaneous/Day Note Template.html
@@ -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>
\ No newline at end of file
diff --git a/apps/edit-docs/demo/root/Trilium Demo/Formatting examples/Code blocks.html b/apps/edit-docs/demo/root/Trilium Demo/Formatting examples/Code blocks.html
index 214ef212e7..e562046eff 100644
--- a/apps/edit-docs/demo/root/Trilium Demo/Formatting examples/Code blocks.html
+++ b/apps/edit-docs/demo/root/Trilium Demo/Formatting examples/Code blocks.html
@@ -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,
diff --git a/apps/edit-docs/demo/root/Trilium Demo/Tech/Linux/Bash scripting/While loop.html b/apps/edit-docs/demo/root/Trilium Demo/Tech/Linux/Bash scripting/While loop.html
index 5edac5b2a0..1704941afc 100644
--- a/apps/edit-docs/demo/root/Trilium Demo/Tech/Linux/Bash scripting/While loop.html
+++ b/apps/edit-docs/demo/root/Trilium Demo/Tech/Linux/Bash scripting/While loop.html
@@ -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>
diff --git a/apps/server/src/assets/db/demo.zip b/apps/server/src/assets/db/demo.zip
index d042dd83e1..5ddc6a7681 100644
Binary files a/apps/server/src/assets/db/demo.zip and b/apps/server/src/assets/db/demo.zip differ