2020-05-29 19:48:10 +03:00
|
|
|
<!--
|
|
|
|
JS selector for site.
|
|
|
|
-->
|
|
|
|
|
2021-01-23 10:07:18 +03:00
|
|
|
{% if page.layout == 'home' or page.layout == 'post' %}
|
|
|
|
{% if site.google_analytics.pv.enabled %}
|
|
|
|
<!-- pv-report needs countup.js -->
|
|
|
|
<script async src="https://cdn.jsdelivr.net/npm/countup.js@1.9.3/dist/countUp.min.js"></script>
|
|
|
|
<script async src="{{ '/assets/js/dist/pvreport.min.js' | relative_url }}"></script>
|
|
|
|
{% endif %}
|
2020-12-04 09:18:25 +03:00
|
|
|
{% endif %}
|
2020-05-29 19:48:10 +03:00
|
|
|
|
2021-01-23 10:07:18 +03:00
|
|
|
{% if page.layout == 'home'
|
|
|
|
or page.layout == 'post'
|
|
|
|
or page.layout == 'categories' %}
|
|
|
|
{% assign type = page.layout %}
|
|
|
|
{% else %}
|
|
|
|
{% assign type = "page" %}
|
|
|
|
{% endif %}
|
2020-05-29 19:48:10 +03:00
|
|
|
|
2021-01-23 10:07:18 +03:00
|
|
|
{% assign js = type | prepend: '/assets/js/dist/' | append: '.min.js' %}
|
|
|
|
<script defer src="{{ js | relative_url }}"></script>
|
2020-05-29 19:48:10 +03:00
|
|
|
|
2020-12-04 09:18:25 +03:00
|
|
|
{% if page.math %}
|
|
|
|
<!-- MathJax -->
|
2021-03-09 10:50:08 +03:00
|
|
|
<script>
|
|
|
|
// see: <https://docs.mathjax.org/en/latest/options/input/tex.html#tex-options>
|
|
|
|
MathJax = {
|
|
|
|
tex: {
|
|
|
|
inlineMath: [ // start/end delimiter pairs for in-line math
|
|
|
|
['$','$'],
|
|
|
|
['\\(','\\)']
|
|
|
|
],
|
|
|
|
displayMath: [ // start/end delimiter pairs for display math
|
|
|
|
['$$', '$$'],
|
|
|
|
['\\[', '\\]']
|
|
|
|
]
|
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
|
|
|
|
<script type="text/javascript" id="MathJax-script" async
|
|
|
|
src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-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-12-10 18:57:00 +03:00
|
|
|
|
|
|
|
<!-- GA -->
|
|
|
|
{% if site.google_analytics.id %}
|
|
|
|
{% include google-analytics.html %}
|
|
|
|
{% endif %}
|
|
|
|
|
2020-05-29 19:48:10 +03:00
|
|
|
{% endif %}
|