Update scripts.ejs

master
Uncle_drew 4 years ago committed by GitHub
parent a1dcaea1e0
commit 9ecc1724e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 43
      layout/_partial/scripts.ejs

@ -20,6 +20,48 @@
if (!ROOT.endsWith('/')) ROOT += '/';
</script>
<% } %>
<% if (theme.Artitalk) { %>
<script>
var appID ="<%= theme.Artitalk.appID %>";
var appKEY ="<%= theme.Artitalk.appKEY %>";
<% if(theme.Artitalk.severurl){ %>
var severurl="<%= theme.Artitalk.severurl %>";
<% } %>
<% if(theme.Artitalk.slanguage){ %>
var slanguage="<%= theme.Artitalk.slanguage %>";
<% } %>
<% if(theme.Artitalk.per){ %>
var per="<%= theme.Artitalk.per %>";
<% } %>
<% if(theme.Artitalk.placeholder1){ %>
var placeholder1="<%= theme.Artitalk.placeholder1 %>";
<% } %>
<% if(theme.Artitalk.placeholder2){ %>
var placeholder2="<%= theme.Artitalk.placeholder2 %>";
<% } %>
<% if(theme.Artitalk.lazy==0){ %>
var lazy=0;
<% }else{ %>
var lazy=1;
<% } %>
<% if(theme.Artitalk.bgimg){ %>
var bgimg="<%= theme.Artitalk.bgimg %>";
<% } %>
<% if(theme.Artitalk.color1){ %>
var color1="<%= theme.Artitalk.color1 %>";
<% } %>
<% if(theme.Artitalk.color2){ %>
var color2="<%= theme.Artitalk.color2 %>";
<% } %>
<% if(theme.Artitalk.color3){ %>
var color3="<%= theme.Artitalk.color3 %>";
<% } %>
</script>
<script type="text/javascript" src="https://unpkg.com/artitalk"></script>
<% } %>
<% if (theme.plugins.instant_page) { %>
<script async src="<%- theme.plugins.instant_page %>" type="module" defer integrity="sha384-OeDn4XE77tdHo8pGtE1apMPmAipjoxUQ++eeJa6EtJCfHlvijigWiJpD7VDPWXV1"></script>
<% } %>
@ -341,3 +383,4 @@
<% (config.import.script||[]).forEach(function(item){ %>
<%- item %><% }) %>
<% } %>

Loading…
Cancel
Save