Permalink
Browse files

style: load clipboard.js in head via CDN

  • Loading branch information...
MOxFIVE committed Apr 15, 2016
1 parent 576419f commit aeff547702acc636218387b25c739dac7463ce04
Showing with 1 addition and 2 deletions.
  1. +1 −1 layout/_partial/head.ejs
  2. +0 −1 layout/_partial/post/nav.ejs
View
@@ -56,6 +56,7 @@
<%- css('fancybox/jquery.fancybox') %>
<% } %>
<%- js('//cdn.bootcss.com/jquery/1.9.1/jquery.min') %>
<script src="//cdn.bootcss.com/clipboard.js/1.5.9/clipboard.min.js"></script>
<script>
var yiliaConfig = {
fancybox: <%=theme.fancybox%>,
@@ -82,7 +83,6 @@
<% if (theme.share.on && theme.share.addthis){ %>
<script src="//s7.addthis.com/js/300/addthis_widget.js#pubid=<%-theme.share.addthis_pubid%>"></script>
<% } %>
<% if (theme.baidu_tongji){ %>
<script>
var _hmt = _hmt || [];
@@ -7,7 +7,6 @@
<p>
<span><%= __('copyright_info.url') %>:</span><a class="post-url" href="<%- url_for(post.path) %>" title="<%= post.title %>"><%= post.permalink %></a>
<span class="copy-path" data-clipboard-text="<%= __('copyright_info.from') %> <%= post.permalink %>  <%= __('copyright_info.by') %> <%=theme.author%>" title="<%= __('tooltip.copyPath') %>"><i class="fa fa-clipboard"></i></span>
<script src="/js/clipboard.min.js"></script>
<script> var clipboard = new Clipboard('.copy-path'); </script>
</p>
<p>

0 comments on commit aeff547

Please sign in to comment.