添加主题自定义配置参数
This commit is contained in:
@@ -17,3 +17,14 @@
|
||||
|
||||
<script src="<%= themeConfig.domain %>/media/js/jquery.min.js" type="text/javascript"></script>
|
||||
<link rel="alternate" href="/atom.xml" title="<%= siteTitle %>" type="application/atom+xml">
|
||||
|
||||
<% if (site.customConfig.ga) { %>
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=<%= site.customConfig.ga %>"></script>
|
||||
<script>
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag(){dataLayer.push(arguments);}
|
||||
gtag('js', new Date());
|
||||
|
||||
gtag('config', '<%= site.customConfig.ga %>');
|
||||
</script>
|
||||
<% } %>
|
||||
|
||||
Reference in New Issue
Block a user