diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..a4ad05f --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,4 @@ +# 20141203 +1. modify widget/links, you can define links in `_config.yml` +2. add widget/comment, it will show the latest comments of duoshuo +3. linkedin icon in footer can be display right now diff --git a/_config.yml b/_config.yml index a8df369..2546a42 100644 --- a/_config.yml +++ b/_config.yml @@ -14,8 +14,10 @@ widgets: - category - tag - rss -## provide six widgets:category,tag,rss,archive,tagcloud,links. -## modify links in `/layout/_widget/links.ejs`. +- comment +- links +## provide seven widgets:category,tag,rss,archive,tagcloud,links,comment. +## modify links in `_config.yml` #### RSS rss: ## RSS address. @@ -96,3 +98,16 @@ google_cse: ## title: search ## --- +## for friendly links +links: +- url: http://github.com + name: github + title: a free code repository +- url: http://hexo.io + name: hexo + title: a free blog generator + +# 百度统计 +baidu_tongji: + enable: false ##使用百度统计就设置为true + key: ##百度统计代码中//hm.baidu.com/hm.js?后面的那串id diff --git a/languages/default.yml b/languages/default.yml index f220330..3c29761 100644 --- a/languages/default.yml +++ b/languages/default.yml @@ -16,3 +16,4 @@ rss: RSS showsidebar: "Show Sidebar" hidesidebar: "Hide Sidebar" updated: Updated +comments: "Latest Comments" diff --git a/languages/zh-CN.yml b/languages/zh-CN.yml index bf0b4df..d0a0ad2 100644 --- a/languages/zh-CN.yml +++ b/languages/zh-CN.yml @@ -15,4 +15,5 @@ links: 友情链接 rss: RSS 订阅 showsidebar: 显示侧边栏 hidesidebar: 隐藏侧边栏 -updated: 更新日期 \ No newline at end of file +updated: 更新日期 +comments: 最新评论 diff --git a/languages/zh-TW.yml b/languages/zh-TW.yml index 18e78e5..2e9b3d2 100644 --- a/languages/zh-TW.yml +++ b/languages/zh-TW.yml @@ -15,4 +15,5 @@ links: 友情鏈接 rss: RSS 訂閱 showsidebar: 顯示側邊欄 hidesidebar: 隱藏側邊欄 -updated: 更新日期 \ No newline at end of file +updated: 更新日期 +comments: 最新評論 diff --git a/layout/_partial/after_footer.ejs b/layout/_partial/after_footer.ejs index 3cc0900..cb705b0 100644 --- a/layout/_partial/after_footer.ejs +++ b/layout/_partial/after_footer.ejs @@ -158,7 +158,28 @@ $(document).ready(function(){ if($.fancybox){ $('.fancybox').fancybox(); } -}); +}); <% } %> + <%- partial('google_analytics') %> diff --git a/layout/_partial/baidu_tongji.ejs b/layout/_partial/baidu_tongji.ejs new file mode 100644 index 0000000..05ffcc3 --- /dev/null +++ b/layout/_partial/baidu_tongji.ejs @@ -0,0 +1,11 @@ +<% if (theme.baidu_tongji && theme.baidu_tongji.enable) { %> + +<% } %> diff --git a/layout/_partial/head.ejs b/layout/_partial/head.ejs index 9cbc17a..44805af 100644 --- a/layout/_partial/head.ejs +++ b/layout/_partial/head.ejs @@ -52,4 +52,5 @@ <% } %> <%- css('css/style') %> + <%- partial('baidu_tongji') %> diff --git a/layout/_widget/comment.ejs b/layout/_widget/comment.ejs new file mode 100644 index 0000000..23309ab --- /dev/null +++ b/layout/_widget/comment.ejs @@ -0,0 +1,18 @@ +<% if (theme.duoshuo.enable && theme.duoshuo.short_name.length) { %> +
<%= __('links') %>
<%= __('comments') %>
++