41 lines
1.1 KiB
HTML
41 lines
1.1 KiB
HTML
<!--
|
|
JS selector for site.
|
|
Chirpy v2.3
|
|
https://github.com/cotes2020/jekyll-theme-chirpy
|
|
© 2020 Cotes Chung
|
|
MIT Licensed
|
|
-->
|
|
|
|
{% if page.layout == 'home' %}
|
|
|
|
<script async src="{{ '/assets/js/home.min.js' | relative_url }}"></script>
|
|
|
|
{% elsif page.layout == 'post' %}
|
|
|
|
<script async src="{{ '/assets/js/post.min.js' | relative_url }}"></script>
|
|
|
|
{% if page.math %}
|
|
<!-- MathJax -->
|
|
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
|
|
<script async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
|
|
{% endif %}
|
|
|
|
{% elsif page.layout == 'page' %}
|
|
|
|
{% if page.type == 'categories' %}
|
|
<script async src="{{ '/assets/js/categories.min.js' | relative_url }}"></script>
|
|
{% else %}
|
|
<script async src="{{ '/assets/js/page.min.js' | relative_url }}"></script>
|
|
{% endif %}
|
|
|
|
{% else %}
|
|
|
|
<script async src="{{ '/assets/js/page.min.js' | relative_url }}"></script>
|
|
|
|
{% endif %}
|
|
|
|
|
|
{% if jekyll.environment == 'production' %}
|
|
<!-- PWA -->
|
|
<script defer src="{{ '/app.js' | relative_url }}"></script>
|
|
{% endif %}
|