File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change
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 이전/다음 게시물 추천 기능은 카테고리를 기준으로 추천되도록 개선 -->
1
4
< 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 >
6
8
{% endif %}
7
- </ div >
8
9
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 >
12
12
{% endif %}
13
- </ div >
14
-
13
+ </ ul >
15
14
</ div >
15
+ {% endif %}
You can’t perform that action at this time.
0 commit comments