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
|
|
|
|
-->
|
|
|
|
|
2020-12-04 09:18:25 +03:00
|
|
|
{% if page.layout == 'home' or page.layout == 'post' or page.layout == 'categories' %}
|
|
|
|
{% assign js = page.layout %}
|
2020-05-29 19:48:10 +03:00
|
|
|
{% else %}
|
2020-12-04 09:18:25 +03:00
|
|
|
{% assign js = "page" %}
|
|
|
|
{% endif %}
|
2020-05-29 19:48:10 +03:00
|
|
|
|
2020-12-04 09:18:25 +03:00
|
|
|
{% assign js_src = js | prepend: '/assets/js/' | append: '.min.js' | relative_url %}
|
2020-05-29 19:48:10 +03:00
|
|
|
|
2020-12-04 09:18:25 +03:00
|
|
|
<script async src="{{ js_src }}"></script>
|
2020-05-29 19:48:10 +03:00
|
|
|
|
2020-12-04 09:18:25 +03:00
|
|
|
{% if page.math %}
|
|
|
|
<!-- MathJax -->
|
2020-12-10 14:49:43 +03:00
|
|
|
<script defer src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
|
|
|
|
<script defer src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
|
2020-12-04 09:18:25 +03:00
|
|
|
{% endif %}
|
2020-05-29 19:48:10 +03:00
|
|
|
|
|
|
|
{% 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 %}
|