<% function custom_inject() { var el = ''; for (let item of (config.inject?.script || [])) { el += item; } for (let item of (theme.inject?.script || [])) { el += item; } for (let item of (page.inject?.script || [])) { el += item; } return el; } %> <%- partial('../plugins/comments/script') %> <%- partial('../plugins/parser/script') %> <%- custom_inject() %>