mirror of
https://github.com/next-theme/hexo-theme-next.git
synced 2026-01-19 18:42:34 +00:00
Fix URL of related posts
This commit is contained in:
parent
6e47bd6887
commit
243d81ed8e
@ -10,7 +10,7 @@
|
|||||||
{%- if popular_post.img %}
|
{%- if popular_post.img %}
|
||||||
<div class="popular-posts-img"><img src="{{ popular_post.img }}" alt="{{ popular_post.title }}"></div>
|
<div class="popular-posts-img"><img src="{{ popular_post.img }}" alt="{{ popular_post.title }}"></div>
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
<div class="popular-posts-title"><a href="{{ popular_post.path }}" rel="bookmark">{{ popular_post.title }}</a></div>
|
<div class="popular-posts-title"><a href="{{ url_for(popular_post.path) }}" rel="bookmark">{{ popular_post.title }}</a></div>
|
||||||
{%- if popular_post.excerpt and popular_post.excerpt != '' %}
|
{%- if popular_post.excerpt and popular_post.excerpt != '' %}
|
||||||
<div class="popular-posts-excerpt"><p>{{ popular_post.excerpt }}</p></div>
|
<div class="popular-posts-excerpt"><p>{{ popular_post.excerpt }}</p></div>
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user