From e4cc625c33ecd2992dcf60f408417c3067b4fa2b Mon Sep 17 00:00:00 2001
From: Aiden Bai <aiden.bai05@gmail.com>
Date: Tue, 03 May 2022 16:34:27 +0000
Subject: [PATCH] Add future note about init function
---
layouts/partials/head.html | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 60ff782..a81c9ed 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -67,6 +67,7 @@
resources.Minify }}
<script type="module">
import { init } from '{{$router.Permalink}}';
+ // NOTE: everything within this callback will be executed for every page navigation. This is a good place to put JavaScript that loads or modifies data on the page.
init(() => {
drawGraph(
{{strings.TrimRight "/" .Page.Permalink}},
--
Gitblit v1.10.0