hexo-theme-linen 1.0.5 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -4,7 +4,7 @@ const series = Array.from(new Set(site.posts.filter(item=>item.series).sort('dat
|
|
|
4
4
|
<div class="site-info<%=is_home_first_page() ? ' home' : ''%>">
|
|
5
5
|
<div class="info-row">
|
|
6
6
|
<div class="author">
|
|
7
|
-
<img class="avatar" src="<%=theme?.info?.avatar || '/img/vue-color-avatar.png'%>" alt="" />
|
|
7
|
+
<img class="avatar" src="<%=url_for(theme?.info?.avatar || '/linen-theme/img/vue-color-avatar.png')%>" alt="" />
|
|
8
8
|
<div class="name"><%=config?.author || ''%></div>
|
|
9
9
|
</div>
|
|
10
10
|
</div>
|
package/layout/post.ejs
CHANGED
|
@@ -186,10 +186,10 @@ const nextPost = series[currentIndex + 1] || null;
|
|
|
186
186
|
}
|
|
187
187
|
const link = document.createElement("link");
|
|
188
188
|
link.rel = "stylesheet";
|
|
189
|
-
link.href = "/js/gitalk/gitalk.css";
|
|
189
|
+
link.href = "/linen-theme/js/gitalk/gitalk.css";
|
|
190
190
|
document.head.appendChild(link);
|
|
191
191
|
const script = document.createElement("script");
|
|
192
|
-
script.src = "/js/gitalk/gitalk.min.js";
|
|
192
|
+
script.src = "/linen-theme/js/gitalk/gitalk.min.js";
|
|
193
193
|
const pageId = location.pathname.length > 40 ? hashPathname(location.pathname) : location.pathname;
|
|
194
194
|
console.log(`GitTalk page ID: ${pageId}`);
|
|
195
195
|
script.onload = function() {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
module.exports.defaultConfig = {
|
|
2
2
|
enable: false,
|
|
3
|
-
loadingImage: "/img/lazyload/loading.svg",
|
|
4
|
-
errorTipImage: "/img/lazyload/error-tip.svg",
|
|
3
|
+
loadingImage: "/linen-theme/img/lazyload/loading.svg",
|
|
4
|
+
errorTipImage: "/linen-theme/img/lazyload/error-tip.svg",
|
|
5
5
|
intersectionRatio: 0.25,
|
|
6
6
|
placeholderRatio: 3 / 2,
|
|
7
7
|
showTransition: true,
|
package/scripts/rss.js
CHANGED
|
@@ -30,7 +30,7 @@ hexo.extend.generator.register("rss", function (locals) {
|
|
|
30
30
|
const getPostDate = hexo.extend.helper.get("getPostDate");
|
|
31
31
|
|
|
32
32
|
const feed = `<?xml version="1.0" encoding="UTF-8" ?>
|
|
33
|
-
<?xml-stylesheet type="text/xsl" href="/css/rss-${language.startsWith("zh") ? "zh" : "en"}.xsl"?>
|
|
33
|
+
<?xml-stylesheet type="text/xsl" href="/linen-theme/css/rss-${language.startsWith("zh") ? "zh" : "en"}.xsl"?>
|
|
34
34
|
<rss version="2.0">
|
|
35
35
|
<channel>
|
|
36
36
|
<title>${escape(config.title)}</title>
|
|
@@ -79,35 +79,35 @@
|
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
.img-exif .camera::before {
|
|
82
|
-
background-image: url("/img/icons/exif/camera.svg");
|
|
82
|
+
background-image: url("/linen-theme/img/icons/exif/camera.svg");
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
.img-exif .iso::before {
|
|
86
|
-
background-image: url("/img/icons/exif/iso.svg");
|
|
86
|
+
background-image: url("/linen-theme/img/icons/exif/iso.svg");
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
.img-exif .focusLength::before {
|
|
90
|
-
background-image: url("/img/icons/exif/focusLength.svg");
|
|
90
|
+
background-image: url("/linen-theme/img/icons/exif/focusLength.svg");
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
.img-exif .aperture::before {
|
|
94
|
-
background-image: url("/img/icons/exif/aperture.svg");
|
|
94
|
+
background-image: url("/linen-theme/img/icons/exif/aperture.svg");
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
.img-exif .shutterSpeed::before {
|
|
98
|
-
background-image: url("/img/icons/exif/shutterSpeed.svg");
|
|
98
|
+
background-image: url("/linen-theme/img/icons/exif/shutterSpeed.svg");
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
.img-exif .ev::before {
|
|
102
|
-
background-image: url("/img/icons/exif/ev.svg");
|
|
102
|
+
background-image: url("/linen-theme/img/icons/exif/ev.svg");
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
.img-exif .lens::before {
|
|
106
|
-
background-image: url("/img/icons/exif/lens.svg");
|
|
106
|
+
background-image: url("/linen-theme/img/icons/exif/lens.svg");
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
.img-exif .hdr::before {
|
|
110
|
-
background-image: url("/img/icons/exif/hdr.svg");
|
|
110
|
+
background-image: url("/linen-theme/img/icons/exif/hdr.svg");
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
.img-exif .location {
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
.img-exif .location::before {
|
|
118
|
-
background-image: url("/img/icons/exif/location.svg");
|
|
118
|
+
background-image: url("/linen-theme/img/icons/exif/location.svg");
|
|
119
119
|
}
|
|
120
120
|
|
|
121
121
|
.img-exif .hdr {
|