Skip to content

Commit

Permalink
move mathjax to blog only
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewDTR committed Nov 16, 2024
1 parent bcd08ea commit 524dfd9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/layouts/BaseLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,6 @@ const { imgLink, title, subtitle } = Astro.props;

<Footer />
</div>
<script
id="MathJax-script"
async
src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"
></script>
<div id="tooltip" class="tooltip"></div>
<script src="../scripts/tooltip.js"></script>
<script>
Expand Down
5 changes: 5 additions & 0 deletions src/layouts/Blog.astro
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ const hasDiscussion = frontmatter.discussion && frontmatter.discussion_link;
<slot />
</div>

<script
id="MathJax-script"
async
src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>

<style>
.blog-title {
font-size: 2.4em;
Expand Down

0 comments on commit 524dfd9

Please sign in to comment.