Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

仅输出标题或标题列表时,也会调用插件替换逻辑 #12

Open
cuixiping opened this issue Apr 30, 2024 · 0 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@cuixiping
Copy link

Bug 描述
在输出独立页面列表(导航栏使用),或“上一篇”“下一篇”时,尽管只是输出标题,但该插件仍然被调用并处理content text,并且会输出插件的 header,footer,浪费了计算资源和带宽。其实只有当页面或文章的正文需要输出时,才需要调用该插件以及输出 header,footer

预期的改进:
仅当必要时(即输出摘要或全文时),才运行插件的核心替换逻辑,否则该插件不产生实际作用。

思路:
插件不要插到filter,而是插到excerptEx, contentEx即可。

@cuixiping cuixiping added the bug Something isn't working label Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants