<!-- layout > post.ejs --> <!-- At the bottom, inside !page.no_comments part--> <!-- Waline comment system, I do not want to use it because I need to modify my domain server infor, too complicated and it is not worth to change that much to using this system --> <% if (config.waline) { %> <div class="container"> <div id="waline"></div> <script> new Waline({ el: "#waline", <% for (const i in config.waline) { %> <%- i %>: <%- config.waline[i] %>, <% } %> }); </script> </div> <% } %>
<!-- Can't use it, my blog is based on Cloud Server not GitHub pages --> <% if (config.giscus) { %> <%- config.giscus %> <% } %>
<!-- layout > _partial > head.ejs --> <!-- At the bottom, inside <head></head> tag, before Valine comment system --> <% if (config.waline) { %> <script src='https://unpkg.com/@waline/client@v2/dist/waline.js'></script> <link rel="stylesheet" href="https://unpkg.com/@waline/client@v2/dist/waline.css" /> <% } %>
<!-- layout > layout.ejs --> <!-- Remove Tidio live chat function, tried but not suitable with the theme also influences the website performance, pretty slow --> <% if (config.tidio) { %> <%- js(config.tidio) %> <% } %>