mirror of
https://github.com/next-theme/hexo-theme-next.git
synced 2026-01-18 18:33:42 +00:00
Support hexo-posts-embedding
This commit is contained in:
parent
7022215775
commit
7bbb662e5e
@ -287,7 +287,8 @@ follow_me:
|
||||
#RSS: /atom.xml || fa fa-rss
|
||||
|
||||
# Related popular posts
|
||||
# Dependencies: https://github.com/sergeyzwezdin/hexo-related-posts
|
||||
# Dependencies: https://github.com/next-theme/hexo-posts-embedding
|
||||
# Or: https://github.com/sergeyzwezdin/hexo-related-posts
|
||||
related_posts:
|
||||
enable: false
|
||||
icon: fa fa-signs-post
|
||||
|
||||
@ -62,6 +62,9 @@
|
||||
{%- if theme.pjax %}
|
||||
<div class="pjax">
|
||||
{%- endif %}
|
||||
{%- if page.embedding_vector %}
|
||||
{% set _ = related_posts(page) %}
|
||||
{%- endif %}
|
||||
{%- if page.related_posts and page.related_posts.length > 0 %}
|
||||
<div class="sidebar-inner sidebar-post-related">
|
||||
<div class="animated">
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user