mirror of
https://github.com/next-theme/hexo-theme-next.git
synced 2026-01-20 19:02:33 +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
|
#RSS: /atom.xml || fa fa-rss
|
||||||
|
|
||||||
# Related popular posts
|
# 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:
|
related_posts:
|
||||||
enable: false
|
enable: false
|
||||||
icon: fa fa-signs-post
|
icon: fa fa-signs-post
|
||||||
|
|||||||
@ -62,6 +62,9 @@
|
|||||||
{%- if theme.pjax %}
|
{%- if theme.pjax %}
|
||||||
<div class="pjax">
|
<div class="pjax">
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
{%- if page.embedding_vector %}
|
||||||
|
{% set _ = related_posts(page) %}
|
||||||
|
{%- endif %}
|
||||||
{%- if page.related_posts and page.related_posts.length > 0 %}
|
{%- if page.related_posts and page.related_posts.length > 0 %}
|
||||||
<div class="sidebar-inner sidebar-post-related">
|
<div class="sidebar-inner sidebar-post-related">
|
||||||
<div class="animated">
|
<div class="animated">
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user