hexo-theme-ayer/layout/_partial/katex.ejs

11 lines
649 B
JavaScript
Raw Normal View History

2020-03-30 12:27:17 +00:00
<% if ( theme.katex.enable ) { %>
<% if( theme.katex.allpost || page.math ) { %>
2022-02-24 03:21:40 +00:00
<link rel="stylesheet" href="https://cdn.staticfile.org/KaTeX/0.15.1/katex.min.css">
<script src="https://cdn.staticfile.org/KaTeX/0.15.1/katex.min.js"></script>
<script src="https://cdn.staticfile.org/KaTeX/0.15.1/contrib/auto-render.min.js"></script>
2020-03-30 12:27:17 +00:00
<% if ( theme.katex.copy_tex ) { %>
2022-02-24 03:21:40 +00:00
<script src="https://cdn.staticfile.org/KaTeX/0.15.1/contrib/copy-tex.min.js"></script>
<link rel="stylesheet" href="https://cdn.staticfile.org/KaTeX/0.15.1/contrib/copy-tex.min.css">
2020-03-30 12:27:17 +00:00
<% } %>
<% } %>
<% } %>