summaryrefslogtreecommitdiff
path: root/_includes/scripts
diff options
context:
space:
mode:
authorKarl Hallsby <karl@hallsby.com>2021-10-03 00:35:46 -0500
committerKarl Hallsby <karl@hallsby.com>2021-10-03 02:16:55 -0500
commite2c06d2681e18946ab6c3e3e6075aed92a4d13be (patch)
treeb30dce94387f4717394277932f691519e0281c44 /_includes/scripts
parenta10ad0a99ba6e44a35253c3bcaff80c90e99348e (diff)
Change to al-folio theme
Theme at: https://github.com/alshedivat/al-folio
Diffstat (limited to '_includes/scripts')
-rw-r--r--_includes/scripts/bootstrap.html4
-rw-r--r--_includes/scripts/jquery.html2
-rw-r--r--_includes/scripts/mansory.html6
-rw-r--r--_includes/scripts/mathjax.html12
-rw-r--r--_includes/scripts/misc.html15
5 files changed, 39 insertions, 0 deletions
diff --git a/_includes/scripts/bootstrap.html b/_includes/scripts/bootstrap.html
new file mode 100644
index 0000000..2c5d4ee
--- /dev/null
+++ b/_includes/scripts/bootstrap.html
@@ -0,0 +1,4 @@
+<!-- Bootsrap & MDB scripts -->
+<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/{{ site.popper.version }}/umd/popper.min.js" integrity="{{ site.popper.integrity }}" crossorigin="anonymous"></script>
+<script src="https://stackpath.bootstrapcdn.com/bootstrap/{{ site.bootstrap.version }}/js/bootstrap.min.js" integrity="{{ site.bootstrap.integrity.js }}" crossorigin="anonymous"></script>
+<script src="https://cdnjs.cloudflare.com/ajax/libs/mdbootstrap/{{ site.mdb.version }}/js/mdb.min.js" integrity="{{ site.mdb.integrity.js }}" crossorigin="anonymous"></script>
diff --git a/_includes/scripts/jquery.html b/_includes/scripts/jquery.html
new file mode 100644
index 0000000..8de7788
--- /dev/null
+++ b/_includes/scripts/jquery.html
@@ -0,0 +1,2 @@
+<!-- jQuery -->
+<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/{{ site.jquery.version }}/jquery.min.js" integrity="{{ site.jquery.integrity }}" crossorigin="anonymous"></script>
diff --git a/_includes/scripts/mansory.html b/_includes/scripts/mansory.html
new file mode 100644
index 0000000..5a93a9e
--- /dev/null
+++ b/_includes/scripts/mansory.html
@@ -0,0 +1,6 @@
+{% if site.enable_mansory %}
+<!-- Mansory & imagesLoaded -->
+<script defer src="https://unpkg.com/masonry-layout@4/dist/masonry.pkgd.min.js"></script>
+<script defer src="https://unpkg.com/imagesloaded@4/imagesloaded.pkgd.min.js"></script>
+<script defer src="{{ '/assets/js/mansory.js' | relative_url }}" type="text/javascript"></script>
+{% endif %}
diff --git a/_includes/scripts/mathjax.html b/_includes/scripts/mathjax.html
new file mode 100644
index 0000000..53db9e0
--- /dev/null
+++ b/_includes/scripts/mathjax.html
@@ -0,0 +1,12 @@
+{% if site.enable_math %}
+<!-- MathJax -->
+<script type="text/javascript">
+ window.MathJax = {
+ tex: {
+ tags: 'ams'
+ }
+ };
+</script>
+<script defer type="text/javascript" id="MathJax-script" src="https://cdn.jsdelivr.net/npm/mathjax@{{ site.mathjax.version }}/es5/tex-mml-chtml.js"></script>
+<script defer src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
+{% endif %}
diff --git a/_includes/scripts/misc.html b/_includes/scripts/misc.html
new file mode 100644
index 0000000..260ce1b
--- /dev/null
+++ b/_includes/scripts/misc.html
@@ -0,0 +1,15 @@
+{% if site.enable_tooltips %}
+<!-- Enable Tooltips -->
+<script type="text/javascript">
+$(function () {$('[data-toggle="tooltip"]').tooltip()})
+</script>
+{% endif %}
+
+{% if site.enable_medium_zoom %}
+<!-- Medium Zoom JS -->
+<script src="https://cdn.jsdelivr.net/npm/medium-zoom@{{ site.medium_zoom.version }}/dist/medium-zoom.min.js" integrity="{{ site.medium_zoom.integrity }}" crossorigin="anonymous"></script>
+<script src="{{ '/assets/js/zoom.js' | relative_url }}"></script>
+{% endif %}
+
+<!-- Load Common JS -->
+<script src="{{ '/assets/js/common.js' | relative_url }}"></script>