{% if title %}{{ title }}{% else %}{{ page.fileSlug }}{% endif %}
+{% if title %}{{ title }}{% else %}{{ page.fileSlug }}{% endif %}
{% endif %}
{% if settings.dgShowTags === true and tags %}
diff --git a/src/site/img/default-note-icon.svg b/src/site/img/default-note-icon.svg
new file mode 100644
index 0000000..3c1d1aa
--- /dev/null
+++ b/src/site/img/default-note-icon.svg
@@ -0,0 +1,8 @@
+
\ No newline at end of file
diff --git a/src/site/img/tree-1.svg b/src/site/img/tree-1.svg
new file mode 100644
index 0000000..ad43a8a
--- /dev/null
+++ b/src/site/img/tree-1.svg
@@ -0,0 +1,13 @@
+
+
diff --git a/src/site/img/tree-2.svg b/src/site/img/tree-2.svg
new file mode 100644
index 0000000..62f088a
--- /dev/null
+++ b/src/site/img/tree-2.svg
@@ -0,0 +1,14 @@
+
+
+
diff --git a/src/site/img/tree-3.svg b/src/site/img/tree-3.svg
new file mode 100644
index 0000000..7a5239b
--- /dev/null
+++ b/src/site/img/tree-3.svg
@@ -0,0 +1,18 @@
+
+
+
diff --git a/src/site/index.njk b/src/site/index.njk
index 31ddad3..4ea54e3 100644
--- a/src/site/index.njk
+++ b/src/site/index.njk
@@ -10,7 +10,7 @@
{% include imp %}
{% endfor %}
-
+
{%include "components/notegrowthhistory.njk"%}
{% if settings.dgShowFileTree !== true %}
{%include "components/navbar.njk"%}
diff --git a/src/site/styles/digital-garden-base.scss b/src/site/styles/digital-garden-base.scss
index c931009..7453756 100644
--- a/src/site/styles/digital-garden-base.scss
+++ b/src/site/styles/digital-garden-base.scss
@@ -5,6 +5,10 @@
body {
overflow-x: hidden;
+ --note-icon-1: url(/img/tree-1.svg);
+ --note-icon-2: url(/img/tree-2.svg);
+ --note-icon-3: url(/img/tree-3.svg);
+ --note-icon-fallback: url(/img/default-note-icon.svg);
}
.content {
@@ -95,7 +99,7 @@ ul.task-list {
height: 100%;
}
- #graph-controls{
+ #graph-controls {
margin-top: 10px;
}
@@ -378,7 +382,8 @@ ul.task-list {
padding: 3px 0 3px 10px;
}
-.filelist {
+.filename {
+ margin-left: 5px;
}
.notelink.active-note {
@@ -661,3 +666,34 @@ input[type="range"]::-webkit-slider-thumb {
-webkit-appearance: none;
margin-top: -10px;
}
+
+body.title-note-icon .cm-s-obsidian > header > h1[data-note-icon]::before,
+body.filetree-note-icon .filename[data-note-icon]::before,
+body.links-note-icon .internal-link[data-note-icon]::before {
+ content: " ";
+ display: inline-block;
+ width: 0.9em;
+ height: 1em;
+ background-size: contain;
+ background-repeat: no-repeat;
+ background-position: bottom;
+ background-image: var(--note-icon-fallback);
+}
+
+body.title-note-icon .cm-s-obsidian > header > h1[data-note-icon="1"]::before,
+body.filetree-note-icon .filename[data-note-icon="1"]::before,
+body.links-note-icon .internal-link[data-note-icon="1"]::before {
+ background-image: var(--note-icon-1);
+}
+
+body.title-note-icon .cm-s-obsidian > header > h1[data-note-icon="2"]::before,
+body.filetree-note-icon .filename[data-note-icon="2"]::before,
+body.links-note-icon .internal-link[data-note-icon="2"]::before {
+ background-image: var(--note-icon-2);
+}
+
+body.title-note-icon .cm-s-obsidian > header > h1[data-note-icon="3"]::before,
+body.filetree-note-icon .filename[data-note-icon="3"]::before,
+body.links-note-icon .internal-link[data-note-icon="3"]::before {
+ background-image: var(--note-icon-3);
+}
diff --git a/src/site/styles/style.scss b/src/site/styles/style.scss
index 9170df5..2aece8a 100644
--- a/src/site/styles/style.scss
+++ b/src/site/styles/style.scss
@@ -3,8 +3,7 @@
* MODIFY THE custom-style.scss FILE INSTEAD.
***/
-
-:root{
+:root {
--background-primary: rgb(32, 31, 31);
--background-secondary: rgb(57, 56, 56);
--text-normal: #dcddde;
@@ -22,19 +21,19 @@
}
h1 {
- color: #FFEF60;
+ color: #ffef60;
}
h2 {
- color: #F06449;
+ color: #f06449;
}
h3 {
- color: #D4FCC3;
+ color: #d4fcc3;
}
h4 {
- color: #72DCFF;
+ color: #72dcff;
}
button {
@@ -54,21 +53,21 @@ button {
.theme-dark {
background: var(--background-primary);
color: var(--text-normal);
- font-family: 'Roboto', sans-serif;
+ font-family: "Roboto", sans-serif;
}
.theme-light {
background: white;
color: black;
- font-family: 'Roboto', sans-serif;
+ font-family: "Roboto", sans-serif;
}
-a.is-unresolved{
- color: rgb(97 186 245 / 65%);
+a.is-unresolved {
+ color: rgb(97 186 245 / 65%);
}
a {
text-decoration: underline;
- color: var(--text-accent)
+ color: var(--text-accent);
}
.font-bg {
@@ -77,7 +76,7 @@ a {
blockquote {
background: #ffffff17;
- border-left: 10px solid #C1DBE3;
+ border-left: 10px solid #c1dbe3;
margin: 1.5em 10px;
padding: 0.5em 10px;
quotes: "\201C""\201D""\2018""\2019";
@@ -96,7 +95,7 @@ blockquote p {
display: inline;
}
-p>code {
+p > code {
//Inline code
color: #c7254e;
background-color: #1a1a1a;