Skip to content

Commit 04a89d7

Browse files
committed
Update Recommand Post " Disqus 댓글 시스템 주석 처리 및 이전/다음 게시물 추천 섹션 수정 "
- 이전/다음 게시물 추천 기능은 카테고리를 기준으로 추천되도록 개선
1 parent ce2db1b commit 04a89d7

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

_includes/previousAndNext.html

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1+
{% if (page.previous and page.previous.categories == page.categories) or (page.next and page.next.categories == page.categories) %}
2+
<h2 id="recommend">Recommend</h2>
3+
<!-- 2024.11.25 이전/다음 게시물 추천 기능은 카테고리를 기준으로 추천되도록 개선 -->
14
<div class="post-recent">
2-
3-
<div class="pre">
4-
{% if page.previous %}
5-
<p>Back : <a href="{{ page.previous.url | prepend: site.baseurl }}">{{ page.previous.title }}</a></p>
5+
<ul>
6+
{% if page.previous and page.previous.categories == page.categories %}
7+
<li><a href="{{ page.previous.url | prepend: site.baseurl }}">{{ page.previous.title }}</a></li>
68
{% endif %}
7-
</div>
89

9-
<div class="nex">
10-
{% if page.next %}
11-
<p>Next : <a href="{{ page.next.url | prepend: site.baseurl }}">{{ page.next.title }}</a></p>
10+
{% if page.next and page.next.categories == page.categories %}
11+
<li><a href="{{ page.next.url | prepend: site.baseurl }}">{{ page.next.title }}</a></li>
1212
{% endif %}
13-
</div>
14-
13+
</ul>
1514
</div>
15+
{% endif %}

0 commit comments

Comments
 (0)