summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--layouts/_default/baseof.html4
-rw-r--r--layouts/partials/contribution-graph.html5
2 files changed, 4 insertions, 5 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index aa89a69..3736a9f 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -133,5 +133,9 @@
<!-- Tag cloud spiral layout -->
{{ $tagCloudScript := resources.Get "js/tag-cloud-spiral.js" | minify }}
<script src="{{ $tagCloudScript.RelPermalink }}"></script>
+
+ <!-- Contribution graph widget -->
+ {{ $contribScript := resources.Get "js/contribution-graph.js" | minify }}
+ <script src="{{ $contribScript.RelPermalink }}"></script>
</body>
</html>
diff --git a/layouts/partials/contribution-graph.html b/layouts/partials/contribution-graph.html
index dc95811..41cbc90 100644
--- a/layouts/partials/contribution-graph.html
+++ b/layouts/partials/contribution-graph.html
@@ -16,8 +16,3 @@
></div>
</div>
-{{- if not ($page.Scratch.Get "contrib-graph-js-loaded") -}}
- {{- $page.Scratch.Set "contrib-graph-js-loaded" true -}}
- {{- $js := resources.Get "js/contribution-graph.js" | minify -}}
- <script src="{{ $js.RelPermalink }}"></script>
-{{- end -}}