Permalink
Browse files

feat: duoshuo style 个性化多说样式

  • Loading branch information...
MOxFIVE committed Sep 28, 2015
1 parent 8421887 commit 95dbdbacf628e531902f55714f4dae57f3bab070
Showing with 3 additions and 1 deletion.
  1. +1 −0 themes/Yilia/layout/_partial/head.ejs
  2. +2 −1 themes/Yilia/layout/_partial/post/duoshuo.ejs
View
@@ -29,4 +29,5 @@
<link rel="icon" href="<%- theme.favicon %>">
<% } %>
<%- css('css/style') %>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
</head>
View
@@ -1,4 +1,5 @@
<div class="duoshuo">
<!-- 多说评论框 start -->
<div class="ds-thread" data-thread-key="<%=key%>" data-title="<%=title%>" data-url="<%=url%>"></div>
<!-- 多说评论框 end -->
@@ -8,7 +9,7 @@
(function() {
var ds = document.createElement('script');
ds.type = 'text/javascript';ds.async = true;
ds.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//static.duoshuo.com/embed.js';
ds.src = 'http://moxfive.xyz/resources/embed.js';
ds.charset = 'UTF-8';
(document.getElementsByTagName('head')[0]
|| document.getElementsByTagName('body')[0]).appendChild(ds);

0 comments on commit 95dbdba

Please sign in to comment.