2020-05-29 19:48:10 +03:00
|
|
|
<!--
|
|
|
|
JS selector for site.
|
|
|
|
Chirpy v2.3
|
|
|
|
https://github.com/cotes2020/jekyll-theme-chirpy
|
|
|
|
© 2020 Cotes Chung
|
|
|
|
MIT Licensed
|
|
|
|
-->
|
|
|
|
|
|
|
|
{% if page.layout == 'home' %}
|
|
|
|
|
2020-10-27 15:57:59 +03:00
|
|
|
<script async src="{{ '/assets/js/home.min.js' | relative_url }}"></script>
|
2020-05-29 19:48:10 +03:00
|
|
|
|
|
|
|
{% elsif page.layout == 'post' %}
|
|
|
|
|
2020-10-27 15:57:59 +03:00
|
|
|
<script async src="{{ '/assets/js/post.min.js' | relative_url }}"></script>
|
2020-05-29 19:48:10 +03:00
|
|
|
|
|
|
|
{% if page.math %}
|
|
|
|
<!-- MathJax -->
|
|
|
|
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
|
2020-10-27 15:57:59 +03:00
|
|
|
<script async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
|
2020-05-29 19:48:10 +03:00
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% elsif page.layout == 'page' %}
|
|
|
|
|
2020-06-28 18:11:46 +03:00
|
|
|
{% if page.type == 'categories' %}
|
2020-10-27 15:57:59 +03:00
|
|
|
<script async src="{{ '/assets/js/categories.min.js' | relative_url }}"></script>
|
2020-05-29 19:48:10 +03:00
|
|
|
{% else %}
|
2020-10-27 15:57:59 +03:00
|
|
|
<script async src="{{ '/assets/js/page.min.js' | relative_url }}"></script>
|
2020-05-29 19:48:10 +03:00
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% else %}
|
|
|
|
|
2020-10-27 15:57:59 +03:00
|
|
|
<script async src="{{ '/assets/js/page.min.js' | relative_url }}"></script>
|
2020-05-29 19:48:10 +03:00
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
|
|
{% if jekyll.environment == 'production' %}
|
2020-10-12 00:27:13 +03:00
|
|
|
<!-- PWA -->
|
2020-10-27 15:57:59 +03:00
|
|
|
<script defer src="{{ '/app.js' | relative_url }}"></script>
|
2020-05-29 19:48:10 +03:00
|
|
|
{% endif %}
|