Permalink
Browse files

feat: post version control by GihHub

  • Loading branch information...
MOxFIVE committed Jan 10, 2016
1 parent 55720d1 commit d8a4942dab23920837cc70249c31697d36e49235
Showing with 9 additions and 1 deletion.
  1. +9 −1 themes/Yilia/layout/_partial/post/nav.ejs
@@ -4,14 +4,22 @@
<p><span>文章作者:</span><a href="/" title="访问 <%=theme.author%> 的个人博客"><%=theme.author%></a></p>
<p><span>发布时间:</span><%= post.date.format("YYYY年MM月DD日 - HH时mm分") %></p>
<p><span>最后更新:</span><%= post.updated.format("YYYY年MM月DD日 - HH时mm分") %></p>
<% if (post.backup != false){ %>
<p>
<span>更新历史:</span><i class="fa fa-github"></i>
<a href="https://github.com/MOxFIVE/Markdown-Archives-Backup/blame/master/_posts/<%= post.date.format("YYYY-MM-DD") %>.<%= post.slug %>.md" title="顺序查看文章各部分修改记录" target = "_blank">Blame</a>,
<a href="https://github.com/MOxFIVE/Markdown-Archives-Backup/commits/master/_posts/<%= post.date.format("YYYY-MM-DD") %>.<%= post.slug %>.md" title="查看文章有关更新记录" target = "_blank">History</a><span class="raw">文本模式:</span><i class="fa fa-file-text-o"></i>
<a href="https://raw.githubusercontent.com/MOxFIVE/Markdown-Archives-Backup/master/_posts/<%= post.date.format("YYYY-MM-DD") %>.<%= post.slug %>.md" title="查看 & 下载文章 Markdown 原始文本" target = "_blank"> .md Raw</a>
</p>
<% } %>
<p>
<span>原始链接:</span><a class="post-url" href="<%- url_for(post.path) %>" title="<%= post.title %>"><%= post.permalink %></a>
<span class="copy-path" data-clipboard-text="原文: <%= post.permalink %>  作者: <%=theme.author%>" title="点击复制文章链接"><i class="fa fa-clipboard"></i></span>
<script src="/js/clipboard.min.js"></script>
<script> var clipboard = new Clipboard('.copy-path'); </script>
</p>
<p>
<span>许可协议:</span><i class="fa fa-creative-commons"></i> <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/cn/" title="中国大陆 (CC BY-NC-SA 3.0 CN)">"署名-非商用-相同方式共享 3.0"</a> 转载请保留原文链接及作者。
<span>许可协议:</span><i class="fa fa-creative-commons"></i> <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/cn/" title="中国大陆 (CC BY-NC-SA 3.0 CN)" target = "_blank">"署名-非商用-相同方式共享 3.0"</a> 转载请保留原文链接及作者。
</p>
</div>
<% } %>

0 comments on commit d8a4942

Please sign in to comment.