<% const { enable: pjax_enable } = theme?.pjax const { client_id, client_secret, repository, github_id, github_admins } = theme.comment?.gitalk let cdn_css = '//cdn.jsdelivr.net/npm/gitalk/dist/gitalk.css' let cdn_js = '//cdn.jsdelivr.net/npm/gitalk/dist/gitalk.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_css = '//cdn.jsdelivr.net/npm/gitalk/dist/gitalk.css' cdn_js = '//cdn.jsdelivr.net/npm/gitalk/dist/gitalk.min.js' break case 'unpkg': cdn_css = '//unpkg.com/gitalk/dist/gitalk.css' cdn_js = '//unpkg.com/gitalk/dist/gitalk.min.js' break } } %> <% if(client_id && client_secret && github_id && repository) { %>
<% } %>