From b2dc085f484cfd17bad33688db2906c5883bb0e8 Mon Sep 17 00:00:00 2001 From: Utsob Roy Date: Tue, 18 Apr 2023 11:59:22 +0600 Subject: [PATCH] Port the graph to alpineJS (#119) * Port the graph to alpinejs * removed whitespace * remove console log --- src/site/_includes/components/graphScript.njk | 160 +++++++++--------- src/site/_includes/components/sidebar.njk | 31 +--- 2 files changed, 81 insertions(+), 110 deletions(-) diff --git a/src/site/_includes/components/graphScript.njk b/src/site/_includes/components/graphScript.njk index e97f805..5264322 100644 --- a/src/site/_includes/components/graphScript.njk +++ b/src/site/_includes/components/graphScript.njk @@ -1,12 +1,9 @@ +
+
+
Connected Pages
+
+
+ +
+ + + + + + +
+ +
+
+ + +
+
+
+ +
+
+
+
\ No newline at end of file diff --git a/src/site/_includes/components/sidebar.njk b/src/site/_includes/components/sidebar.njk index 6a91f7d..277ae8b 100644 --- a/src/site/_includes/components/sidebar.njk +++ b/src/site/_includes/components/sidebar.njk @@ -5,30 +5,7 @@ {% include imp %} {% endfor %} {%if settings.dgShowLocalGraph === true%} -
-
-
Connected Pages
-
-
- -
- - - - - - -
- -
-
- - -
-
-
- -
+ {%include "components/graphScript.njk"%} {%endif%} {%if settings.dgShowToc === true%} @@ -89,8 +66,4 @@ {% endfor %} - - -{%if settings.dgShowLocalGraph === true %} - {%include "components/graphScript.njk"%} -{% endif %} \ No newline at end of file + \ No newline at end of file