Aiden Bai
2022-05-03 e4cc625c33ecd2992dcf60f408417c3067b4fa2b
Add future note about init function
1 files modified
1 ■■■■ changed files
layouts/partials/head.html 1 ●●●● patch | view | raw | blame | history
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}},