核心内容摘要
最优化方法及应用案例研究_最优化方法应用案例解析与实践指南
多模态搜索优化_多模态搜索体验升级:高效优化策略解析
An injector is used to add static code snippet to the or/and of generated HTML files. Hexo run injector before filter is executed. hexo.extend.injector.register(entry, value, to); Where the code will be injected inside the HTML. Support those values: : Inject code snippet right after (Default). : Inject code snippet right before . : Inject code snippet right after . : Inject code snippet right before . A function that returns string is supported. The code snippet to be injected. Which page will code snippets being injected. : Inject to every page (Default). : Only inject to home page (which has helper being ) : Only inject to post pages (which has helper being ) : Only inject to pages (which has helper being ) : Only inject to archive pages (which has helper being ) : Only inject to category pages (which has helper being ) : Only inject to tag pages (which has helper being ) Custom layout name could be used as well, see Writing - Layout. There are other internal functions, see hexojs/hexo#4049 for more details. const css = hexo.extend.helper.get("css").bind(hexo); const js = hexo.extend.helper.get("js").bind(hexo); hexo.extend.injector.register( "head_end", () => { return css( "https://cdn.jsdelivr.net/npm/aplayer@1.10.1/dist/APlayer.min.css", ); }, "music", ); hexo.extend.injector.register( "body_end", ' 123456789101111111111111111111111111111 123456789101111111111111111111111111111 123456789101111111111111111111111111111111111111111