Skip to content

Commit

Permalink
Fix Zola bug about minified js
Browse files Browse the repository at this point in the history
  • Loading branch information
salif committed Nov 9, 2024
1 parent c44c612 commit 6b5746e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
9 changes: 5 additions & 4 deletions templates/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -328,15 +328,16 @@
<script src="{{ get_url(path=`js/linkita_search.js`) }}"></script>
{%- endif %}

<!-- Favicon -->
{%- if not config.extra.disable_default_favicon %}
<link rel="icon" type="image/x-icon" sizes="16x16" href="{{ get_url(path=`favicon.ico`) }}" />
<link rel="apple-touch-icon" type="image/png" href="{{ get_url(path=`apple-touch-icon.png`) }}" />
<link rel="icon" type="image/png" href="{{ get_url(path=`android-icon.png`) }}" />
{%- endif %}

<!-- Math -->
{%- if page.extra.math | default(value=config.extra.math) %}
{% include "partials/math.html" %}
{%- endif %}
{%- if page.extra.math | default(value=config.extra.math) %}
{% include "partials/math.html" %}
{%- endif %}

<!-- Head inject -->
{% include "injects/head.html" ignore missing %}
Expand Down
4 changes: 2 additions & 2 deletions templates/partials/math.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
// customised options
// • auto-render specific keys, e.g.:
delimiters: [
{ left: "$$", right: "$$", display: true },
{ left: "$", right: "$", display: false },
{ left: `$$`, right: `$$`, display: true },
{ left: `$`, right: `$`, display: false },
],
// • rendering keys, e.g.:
throwOnError: false,
Expand Down

0 comments on commit 6b5746e

Please sign in to comment.