Added ability to load javascript libraries for articles only when they're needed.

This commit is contained in:
chris062689
2018-03-03 20:04:20 -05:00
parent 98409254c2
commit 3e60a10f7d
2 changed files with 6 additions and 1 deletions

View File

@ -115,6 +115,11 @@
<script src="{{ .Site.BaseURL }}/js/script.js"></script>
{{ block "scripts" . }}{{ end }}
{{ if in .Params.js "juxtapose" }}
<script src="https://cdn.knightlab.com/libs/juxtapose/latest/js/juxtapose.min.js"></script>
<link rel="stylesheet" href="https://cdn.knightlab.com/libs/juxtapose/latest/css/juxtapose.css">
{{ end }}
</body>
</html>