February 4, 2023

Hexo Theme Cupertino Delete Code Backup

Explain

This file is a place to store source code being deleted from the Hexo theme Cupertino.

Those source codes are deleted based on my personal needs; some are duplicated and some are never used. Keep it here for backup or future use.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<!-- 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) %>
<% } %>

<% if (config.ackee) { %>
<%- config.ackee %>
<% } %>

About this Post

This post is written by Andy, licensed under CC BY-NC 4.0.

#Theme Cupertino