<% const { enable: pjax_enable } = theme?.pjax const { appid, appkey, server_urls, placeholder } = theme.comment?.valine let cdn_url = '//cdn.jsdelivr.net/npm/valine@latest/dist/Valine.min.js' const { enable: t_cdn_enable, provider: t_cdn_provider } = theme?.cdn if (t_cdn_enable === true) { switch (t_cdn_provider) { case 'jsdelivr': cdn_url = '//cdn.jsdelivr.net/npm/valine@latest/dist/Valine.min.js' break case 'unpkg': cdn_url = '//unpkg.com/valine@latest/dist/Valine.min.js' break } } %> <% if(appid && appkey) { %>
<% } %>