Support hexo-posts-embedding

This commit is contained in:
Mimi 2025-07-16 15:01:07 +08:00
parent 7022215775
commit 7bbb662e5e
2 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -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">