fix: remove non-existing links

This commit is contained in:
2024-02-26 16:17:11 +09:00
parent 7ab0779bdb
commit 149399b90f

View File

@@ -11,6 +11,8 @@
<!-- layout specified --> <!-- layout specified -->
{% assign js_dist = '/assets/js/dist/' %}
{% if page.layout == 'post' or page.layout == 'page' or page.layout == 'home' %} {% if page.layout == 'post' or page.layout == 'page' or page.layout == 'home' %}
{% assign urls = urls | append: ',' | append: site.data.origin[type]['lazy-polyfill'].js %} {% assign urls = urls | append: ',' | append: site.data.origin[type]['lazy-polyfill'].js %}
@@ -65,7 +67,7 @@
{% assign js = 'commons' %} {% assign js = 'commons' %}
{% endcase %} {% endcase %}
{% capture script %}/assets/js/dist/{{ js }}.min.js{% endcapture %} {% capture script %}{{ js_dist }}{{ js }}.min.js{% endcapture %}
<script defer src="{{ script | relative_url }}"></script> <script defer src="{{ script | relative_url }}"></script>
{% if page.math %} {% if page.math %}
@@ -77,12 +79,12 @@
/* start/end delimiter pairs for in-line math */ /* start/end delimiter pairs for in-line math */
inlineMath: [ inlineMath: [
['$', '$'], ['$', '$'],
["\\(", "\\)"] ['\\(', '\\)']
], ],
/* start/end delimiter pairs for display math */ /* start/end delimiter pairs for display math */
displayMath: [ displayMath: [
['$$', '$$'], ['$$', '$$'],
["\\[", "\\]"] ['\\[', '\\]']
], ],
macros: { macros: {
ds: "\\displaystyle", ds: "\\displaystyle",
@@ -141,7 +143,8 @@
tilde: ["\\widetilde{#1}", 1], tilde: ["\\widetilde{#1}", 1],
hat: ["\\widehat{#1}", 1], hat: ["\\widehat{#1}", 1],
} },
tags: 'ams'
} }
}; };
</script> </script>
@@ -149,16 +152,32 @@
<script id="MathJax-script" async src="{{ site.data.origin[type].mathjax.js | relative_url }}"></script> <script id="MathJax-script" async src="{{ site.data.origin[type].mathjax.js | relative_url }}"></script>
{% endif %} {% endif %}
<!-- Pageviews -->
{% if page.layout == 'post' %}
{% assign provider = site.pageviews.provider %}
{% if provider and provider != empty %}
{% case provider %}
{% when 'goatcounter' %}
{% if site.analytics[provider].id != empty and site.analytics[provider].id %}
{% include pageviews/{{ provider }}.html %}
{% endif %}
{% endcase %}
{% endif %}
{% endif %}
{% if jekyll.environment == 'production' %} {% if jekyll.environment == 'production' %}
<!-- PWA --> <!-- PWA -->
{% if site.pwa.enabled %} {% if site.pwa.enabled %}
<script defer src="{{ '/app.js' | relative_url }}"></script> <script defer src="{{ 'app.min.js' | prepend: js_dist | relative_url }}"></script>
{% else %}
<script defer src="{{ '/unregister.js' | relative_url }}"></script>
{% endif %} {% endif %}
<!-- GA --> <!-- Web Analytics -->
{% if site.google_analytics.id != empty and site.google_analytics.id %} {% for analytics in site.analytics %}
{% include google-analytics.html %} {% capture str %}{{ analytics }}{% endcapture %}
{% endif %} {% assign type = str | split: '{' | first %}
{% if site.analytics[type].id and site.analytics[type].id != empty %}
{% include analytics/{{ type }}.html %}
{% endif %}
{% endfor %}
{% endif %} {% endif %}