Skip to content

Commit

Permalink
🐛 & ⚡ fix permalink cross the border, support update without changing…
Browse files Browse the repository at this point in the history
… old _config.yml
  • Loading branch information
FoxerLee committed Sep 28, 2020
1 parent d725af5 commit 9604cd7
Show file tree
Hide file tree
Showing 19 changed files with 17 additions and 2 deletions.
3 changes: 2 additions & 1 deletion languages/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ license: License
signature: Signature
education: Education
experience: Experience
interest: Interest
interest: Interest
resume: Resume
3 changes: 2 additions & 1 deletion languages/zh-CN.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ license: 许可
signature: 签名
education: 教育
experience: 工作经历
interest: 兴趣
interest: 兴趣
resume: 简历
4 changes: 4 additions & 0 deletions layout/_page/post.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,18 @@
<% if (theme.copyright) { %>
<div class="copyright">
<% if (theme.permalink) { %>
<div style="overflow-x: auto;white-space:nowrap;">
<p>
<strong><%= __('permalink') %>:</strong> <a href="<%- page.permalink %>"><%- page.permalink %></a>
</p>
</div>
<% } %>
<% if (theme.license) { %>
<div style="overflow-x: auto;white-space:nowrap;">
<p>
<strong><%= __('license') %>:</strong> <%- theme.license %>
</p>
</div>
<% } %>
<% if (theme.signature) { %>
<p>
Expand Down
9 changes: 9 additions & 0 deletions scripts/replace.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/**
* Note: configs in _data/temp.yml will replace configs in hexo.theme.config.
*/
hexo.on('generateBefore', function () {
if (hexo.locals.get) {
var data = hexo.locals.get('data') // 获取_data文件夹下的内容
data && data.temp && (hexo.theme.config = data.temp) // 如果temp.yml 存在,就把内容替换掉主题的config
}
})
Binary file removed source/images/a1.jpg
Binary file not shown.
Binary file removed source/images/a10.jpg
Binary file not shown.
Binary file removed source/images/a11.jpg
Binary file not shown.
Binary file removed source/images/a12.jpg
Binary file not shown.
Binary file removed source/images/a13.png
Binary file not shown.
Binary file removed source/images/a14.png
Binary file not shown.
Binary file removed source/images/a2.jpg
Binary file not shown.
Binary file removed source/images/a3.jpg
Binary file not shown.
Binary file removed source/images/a4.jpg
Binary file not shown.
Binary file removed source/images/a6.jpg
Binary file not shown.
Binary file removed source/images/a7.jpg
Binary file not shown.
Binary file removed source/images/a8.jpg
Binary file not shown.
Binary file removed source/images/a9.jpg
Binary file not shown.
Binary file removed source/images/avatar.jpeg
Binary file not shown.
Binary file removed source/images/avatar2.jpeg
Binary file not shown.

0 comments on commit 9604cd7

Please sign in to comment.