Skip to content

Build your personal knowledge base with Trilium Notes

feat(website): mention Markdown note type

Elian Doran573c40bcc589
diff --git a/apps/website/public/type_markdown.webp b/apps/website/public/type_markdown.webp
new file mode 100644
index 0000000000..c967ee961a
Binary files /dev/null and b/apps/website/public/type_markdown.webp differ
diff --git a/apps/website/src/assets/boxicons/bxs-markdown.svg b/apps/website/src/assets/boxicons/bxs-markdown.svg
new file mode 100644
index 0000000000..84a75363f0
--- /dev/null
+++ b/apps/website/src/assets/boxicons/bxs-markdown.svg
@@ -0,0 +1,5 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"
+fill="currentColor" viewBox="0 0 24 24" >
+<!--Boxicons v3.0.8 https://boxicons.com | License https://docs.boxicons.com/free-->
+<path d="M20.553 18.15H3.447a1.443 1.443 0 0 1-1.442-1.441V7.291c0-.795.647-1.441 1.442-1.441h17.105c.795 0 1.442.646 1.442 1.441v9.418a1.44 1.44 0 0 1-1.441 1.441M6.811 15.268V11.52l1.922 2.402 1.922-2.402v3.748h1.922V8.732h-1.922l-1.922 2.403-1.922-2.403H4.889v6.535h1.922zM19.688 12h-1.922V8.732h-1.923V12h-1.922l2.884 3.364z"></path>
+</svg>
\ No newline at end of file
diff --git a/apps/website/src/pages/Home/index.tsx b/apps/website/src/pages/Home/index.tsx
index 194389b5c2..4ff2376a63 100644
--- a/apps/website/src/pages/Home/index.tsx
+++ b/apps/website/src/pages/Home/index.tsx
@@ -29,6 +29,7 @@ import importExportIcon from "../../assets/boxicons/bx-swap-horizontal.svg?raw";
import tableIcon from "../../assets/boxicons/bx-table.svg?raw";
import attributesIcon from "../../assets/boxicons/bx-tag.svg?raw";
import mermaidIcon from "../../assets/boxicons/bx-vector-square.svg?raw";
+import markdownIcon from "../../assets/boxicons/bxs-markdown.svg?raw";
import Button, { Link } from '../../components/Button.js';
import Card from '../../components/Card.js';
import DownloadButton from '../../components/DownloadButton.js';
@@ -143,6 +144,13 @@ function NoteTypesSection() {
moreInfo: "https://docs.triliumnotes.org/user-guide/note-types/text",
description: t("note_types.text_description")
},
+ {
+ title: t("note_types.markdown_title"),
+ imageUrl: "/type_markdown.webp",
+ iconSvg: markdownIcon,
+ moreInfo: "https://docs.triliumnotes.org/user-guide/note-types/markdown",
+ description: t("note_types.markdown_description")
+ },
{
title: t("note_types.code_title"),
imageUrl: "/type_code.webp",
@@ -150,13 +158,6 @@ function NoteTypesSection() {
moreInfo: "https://docs.triliumnotes.org/user-guide/note-types/code",
description: t("note_types.code_description")
},
- {
- title: t("note_types.file_title"),
- imageUrl: "/type_file.webp",
- iconSvg: fileIcon,
- moreInfo: "https://docs.triliumnotes.org/user-guide/note-types/file",
- description: t("note_types.file_description")
- },
{
title: t("note_types.canvas_title"),
imageUrl: "/type_canvas.webp",
@@ -177,6 +178,13 @@ function NoteTypesSection() {
iconSvg: mindmapIcon,
moreInfo: "https://docs.triliumnotes.org/user-guide/note-types/mindmap",
description: t("note_types.mindmap_description")
+ },
+ {
+ title: t("note_types.file_title"),
+ imageUrl: "/type_file.webp",
+ iconSvg: fileIcon,
+ moreInfo: "https://docs.triliumnotes.org/user-guide/note-types/file",
+ description: t("note_types.file_description")
}
]} />
<p>
diff --git a/apps/website/src/translations/en/translation.json b/apps/website/src/translations/en/translation.json
index 77290648d5..89177d08b7 100644
--- a/apps/website/src/translations/en/translation.json
+++ b/apps/website/src/translations/en/translation.json
@@ -52,7 +52,9 @@
"mermaid_description": "Create diagrams such as flowcharts, class & sequence diagrams, Gantt charts and many more, using the Mermaid syntax.",
"mindmap_title": "Mindmap",
"mindmap_description": "Organize your thoughts visually or brainstorm ideas.",
- "others_list": "and others: <0>note map</0>, <1>relation map</1>, <2>saved searches</2>, <3>render note</3>, and <4>web views</4>."
+ "others_list": "and others: <0>note map</0>, <1>relation map</1>, <2>saved searches</2>, <3>render note</3>, and <4>web views</4>.",
+ "markdown_title": "Markdown",
+ "markdown_description": "Prefer plain text? Write your notes directly in Markdown, keeping them portable and easy to version, while still rendering tables, code blocks and rich formatting in a side-by-side preview."
},
"extensibility_benefits": {
"title": "Sharing & extensibility",