Skip to content

Commit 51a6ff6

Browse files
authored
Merge pull request Gaohaoyang#66 from TangMingliang95/master
similar posts and cdn of mathjax
2 parents 7871312 + 71fe734 commit 51a6ff6

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

_includes/head.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
});
5151
</script>
5252
<script type="text/javascript"
53-
src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
53+
src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
5454
</script>
5555
{% endif %}
5656
</head>

_layouts/post.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,9 @@ <h2 id="comments">Comments</h2>
7979
Content
8080
</div>
8181
<ul id="content-side" class="content-ul">
82+
{% if hasSimilar.size > 0 %}
8283
<li><a href="#similar_posts">Similar Posts</a></li>
84+
{% endif %}
8385
<li><a href="#comments">Comments</a></li>
8486
</ul>
8587
</div>

0 commit comments

Comments
 (0)