Skip to content

Commit

Permalink
Merge branch 'master' of github.com:Gaohaoyang/gaohaoyang.github.io
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaohaoyang committed May 20, 2017
2 parents 1e0ad56 + ece477c commit 9e0845a
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
});
</script>
<script type="text/javascript"
src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>
{% endif %}
</head>
4 changes: 3 additions & 1 deletion _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ <h2 id="similar_posts">Similar Posts</h2>
<ul>
{% endif %}
<li class="relatedPost">
<a href="{{ site.url }}{{ post.url }}">{{ post.title }}
<a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}
{% if post.series %}
(Series: {{ post.series }})
{% endif %}
Expand Down Expand Up @@ -79,7 +79,9 @@ <h2 id="comments">Comments</h2>
Content
</div>
<ul id="content-side" class="content-ul">
{% if hasSimilar.size > 0 %}
<li><a href="#similar_posts">Similar Posts</a></li>
{% endif %}
<li><a href="#comments">Comments</a></li>
</ul>
</div>
Expand Down
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,15 @@ <h2>
<div class="pagination">
{% if paginator.previous_page %}
<a href="/index.html" class="previous"><i class="fa fa-angle-double-left"></i></a>
<a href="{{ paginator.previous_page_path }}" class="previous"><i class="fa fa-angle-left"></i></a>
<a href="{{ paginator.previous_page_path | prepend: site.baseurl }}" class="previous"><i class="fa fa-angle-left"></i></a>
{% else %}
<span class="previous disable"><i class="fa fa-angle-double-left"></i></span>
<span class="previous disable"><i class="fa fa-angle-left"></i></span>
{% endif %}
<span class="page_number ">{{ paginator.page }}/{{ paginator.total_pages }}</span>
{% if paginator.next_page %}
<a href="{{ paginator.next_page_path }}" class="next"><i class="fa fa-angle-right"></i></a>
<a href="/page{{ paginator.total_pages }}" class="next"><i class="fa fa-angle-double-right"></i></a>
<a href="{{ site.baseurl }}/page{{ paginator.total_pages }}" class="next"><i class="fa fa-angle-double-right"></i></a>
{% else %}
<span class="next disable"><i class="fa fa-angle-right"></i></span>
<span class="next disable"><i class="fa fa-angle-double-right"></i></span>
Expand All @@ -75,7 +75,7 @@ <h2>
</div>
<ul class="content-ul" recent>
{% for post in site.posts offset: 0 limit: 10 %}
<li><a href="{{ post.url }}">{{ post.title }}</a></li>
<li><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></li>
{% endfor %}
</ul>
</div>
Expand Down
2 changes: 1 addition & 1 deletion page/1category.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ <h2 id="{{category | first}}">{{category | first}}</h2>
<time>
{{ post.date | date:"%F" }} {{ post.date | date: "%a" }}.
</time>
<a class="title" href="{{ post.url }}">{{ post.title }}</a>
<a class="title" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>

{% include category.html %}
{% include tag.html %}
Expand Down
2 changes: 1 addition & 1 deletion page/2tags.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ <h2 id="{{ tag }}">{{ tag }}</h2>
<time>
{{ post.date | date:"%F" }} {{ post.date | date: "%a" }}.
</time>
<a class="title" href="{{ post.url }}">{{ post.title }}</a>
<a class="title" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>

{% include category.html %}
{% include tag.html %}
Expand Down

0 comments on commit 9e0845a

Please sign in to comment.