diff --git a/_includes/footer.html b/_includes/footer.html
index 44f2e99..bea2fe0 100644
--- a/_includes/footer.html
+++ b/_includes/footer.html
@@ -2,5 +2,13 @@
+
+
+ {% include notes_graph.html %}
+
+
-{% include mermaid.html %}
\ No newline at end of file
+{% if page.mermaid %}
+ {% include mermaid.html %}
+{% endif %}
+
diff --git a/_layouts/note.html b/_layouts/note.html
index e145a1b..aa44c87 100644
--- a/_layouts/note.html
+++ b/_layouts/note.html
@@ -41,13 +41,8 @@ Notes mentioning this note
{%- include recent_notes.html -%}
-
-
-
- {% include notes_graph.html %}
-
-
+
diff --git a/_layouts/page.html b/_layouts/page.html
index 00dee9f..db81750 100644
--- a/_layouts/page.html
+++ b/_layouts/page.html
@@ -6,7 +6,8 @@
{{ content }}
-
-{% if page.mermaid %}
- {% include mermaid.html %}
-{% endif %}
+
+
+ {%- include recent_notes.html -%}
+
+
\ No newline at end of file