Skip to content

Commit 9e0845a

Browse files
committed
Merge branch 'master' of github.com:Gaohaoyang/gaohaoyang.github.io
2 parents 1e0ad56 + ece477c commit 9e0845a

File tree

5 files changed

+9
-7
lines changed

5 files changed

+9
-7
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: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ <h2 id="similar_posts">Similar Posts</h2>
4646
<ul>
4747
{% endif %}
4848
<li class="relatedPost">
49-
<a href="{{ site.url }}{{ post.url }}">{{ post.title }}
49+
<a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}
5050
{% if post.series %}
5151
(Series: {{ post.series }})
5252
{% endif %}
@@ -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>

index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,15 @@ <h2>
5050
<div class="pagination">
5151
{% if paginator.previous_page %}
5252
<a href="/index.html" class="previous"><i class="fa fa-angle-double-left"></i></a>
53-
<a href="{{ paginator.previous_page_path }}" class="previous"><i class="fa fa-angle-left"></i></a>
53+
<a href="{{ paginator.previous_page_path | prepend: site.baseurl }}" class="previous"><i class="fa fa-angle-left"></i></a>
5454
{% else %}
5555
<span class="previous disable"><i class="fa fa-angle-double-left"></i></span>
5656
<span class="previous disable"><i class="fa fa-angle-left"></i></span>
5757
{% endif %}
5858
<span class="page_number ">{{ paginator.page }}/{{ paginator.total_pages }}</span>
5959
{% if paginator.next_page %}
6060
<a href="{{ paginator.next_page_path }}" class="next"><i class="fa fa-angle-right"></i></a>
61-
<a href="/page{{ paginator.total_pages }}" class="next"><i class="fa fa-angle-double-right"></i></a>
61+
<a href="{{ site.baseurl }}/page{{ paginator.total_pages }}" class="next"><i class="fa fa-angle-double-right"></i></a>
6262
{% else %}
6363
<span class="next disable"><i class="fa fa-angle-right"></i></span>
6464
<span class="next disable"><i class="fa fa-angle-double-right"></i></span>
@@ -75,7 +75,7 @@ <h2>
7575
</div>
7676
<ul class="content-ul" recent>
7777
{% for post in site.posts offset: 0 limit: 10 %}
78-
<li><a href="{{ post.url }}">{{ post.title }}</a></li>
78+
<li><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></li>
7979
{% endfor %}
8080
</ul>
8181
</div>

page/1category.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ <h2 id="{{category | first}}">{{category | first}}</h2>
2121
<time>
2222
{{ post.date | date:"%F" }} {{ post.date | date: "%a" }}.
2323
</time>
24-
<a class="title" href="{{ post.url }}">{{ post.title }}</a>
24+
<a class="title" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
2525

2626
{% include category.html %}
2727
{% include tag.html %}

page/2tags.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ <h2 id="{{ tag }}">{{ tag }}</h2>
2525
<time>
2626
{{ post.date | date:"%F" }} {{ post.date | date: "%a" }}.
2727
</time>
28-
<a class="title" href="{{ post.url }}">{{ post.title }}</a>
28+
<a class="title" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
2929

3030
{% include category.html %}
3131
{% include tag.html %}

0 commit comments

Comments
 (0)