Skip to content

Commit 66a6ee0

Browse files
committed
[Add] Original link of Post layout
[Optimize] Upgrade upstream libraries
1 parent bf3c7c3 commit 66a6ee0

File tree

6 files changed

+22
-10
lines changed

6 files changed

+22
-10
lines changed

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
"doc": "source/_post/"
1111
},
1212
"hexo": {
13-
"version": "3.8.0"
13+
"version": "3.9.0"
1414
},
1515
"dependencies": {
16-
"hexo": "^3.8.0",
16+
"hexo": "^3.9.0",
1717
"hexo-auto-category": "^0.2.0",
1818
"hexo-deployer-git": "^1.0.0",
1919
"hexo-generator-archive": "^0.1.5",
@@ -27,7 +27,7 @@
2727
"hexo-pwa": "^0.1.3",
2828
"hexo-reference": "^1.0.4",
2929
"hexo-renderer-ejs": "^0.3.1",
30-
"hexo-renderer-marked": "^0.3.2",
30+
"hexo-renderer-marked": "^1.0.1",
3131
"hexo-renderer-stylus": "^0.3.3",
3232
"hexo-server": "^0.3.3",
3333
"icalendar": "^0.7.1"
@@ -44,8 +44,8 @@
4444
}
4545
},
4646
"devDependencies": {
47-
"husky": "^2.1.0",
48-
"prettier": "^1.17.0"
47+
"husky": "^3.0.1",
48+
"prettier": "^1.18.2"
4949
},
5050
"prettier": {
5151
"tabWidth": 2

themes/Icarus/layout/common/article.ejs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@
5757
<hr>
5858

5959
<% if (is_post()) { %>
60+
<aside class="content">
6061
<%- partial('widget/post_media', { post }) %>
62+
</aside>
6163
<% } %>
6264

6365
<% if (!index && post.tags && post.tags.length) { %>

themes/Icarus/layout/widget/calendar.ejs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/fullcalendar/dist/fullcalendar.min.css">
22
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.3.1/dist/css/bootstrap.min.css">
3-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5.7.2/css/all.min.css">
3+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5.9.0/css/all.min.css">
44
<style>
55
.fc-bg, .fc-content-skeleton thead {
66
color: transparent;
@@ -9,7 +9,7 @@
99
<script src="https://cdn.jsdelivr.net/npm/fullcalendar/dist/fullcalendar.min.js"></script>
1010
<script src="https://cdn.jsdelivr.net/npm/fullcalendar/dist/locale/zh-cn.js"></script>
1111
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.3.1/dist/js/bootstrap.bundle.min.js"></script>
12-
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.14.7/dist/umd/popper.min.js"></script>
12+
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.15.0/dist/umd/popper.min.js"></script>
1313

1414
<div id="Calendar"></div>
1515

themes/Icarus/layout/widget/marker_map.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
<script src="https://cdn.jsdelivr.net/npm/dom-renderer"></script>
55
<script src="https://cdn.jsdelivr.net/npm/web-cell"></script>
6-
<script src="//webapi.amap.com/maps?v=1.4.14&key=<%= config.amap.key %>&plugin=AMap.Geocoder,AMap.AdvancedInfoWindow"></script>
6+
<script src="//webapi.amap.com/maps?v=1.4.15&key=<%= config.amap.key %>&plugin=AMap.Geocoder,AMap.AdvancedInfoWindow"></script>
77

88
<template><%= JSON.stringify( markers ) %></template>
99
<template>

themes/Icarus/layout/widget/post_media.ejs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
<%
2-
const { files, path, authors, photos } = post;
2+
const { original, files, path, authors, photos } = post;
3+
4+
if ( original ) { %>
5+
<blockquote>
6+
<p>
7+
原文链接:<a target="_blank" href="<%= original %>">
8+
<%= original %>
9+
</a>
10+
</p>
11+
</blockquote><%
12+
}
313
414
if ( files ) { %>
515
<hr>

0 commit comments

Comments
 (0)