Skip to content

Commit ece477c

Browse files
authored
Merge pull request Gaohaoyang#68 from kaustubhhiware/page_dir_fix
Fix some redirect urls
2 parents 51a6ff6 + 3073721 commit ece477c

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

_layouts/post.html

Lines changed: 1 addition & 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 %}

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)