<%- __('page.error.what') %>
diff --git a/layout/_partial/cover/wiki_cover.ejs b/layout/_partial/cover/wiki_cover.ejs
index 404b75c..a3216cf 100644
--- a/layout/_partial/cover/wiki_cover.ejs
+++ b/layout/_partial/cover/wiki_cover.ejs
@@ -8,34 +8,28 @@ function layoutWikiCover() {
if (proj.homepage.path !== page.path) {
return;
}
- if (proj.cover == undefined || proj.cover === false || proj.cover === '[]') {
+ if (proj.coverpage == undefined || proj.coverpage === false || proj.coverpage === '[]') {
return el;
}
- var cover = proj.cover;
- let logo = proj.logo;
+ var coverpage = proj.coverpage;
+ let cover = proj.cover;
let title = proj.title || page.title;
let desc = proj.description || page.description;
- if (cover === true) {
- cover = ['logo', 'title', 'description'];
+ if (coverpage === true) {
+ coverpage = ['cover', 'title', 'description'];
}
el += '
';
el += '';
- if (logo && logo.src && cover.includes('logo')) {
- el += '
';
- if (logo.large) {
- el += '';
- } else {
- el += '';
- }
- el += '
';
+ if (cover?.length > 0 && coverpage.includes('cover')) {
+ el += ``
}
- if (title && cover.includes('title')) {
+ if (title && coverpage.includes('title')) {
el += '
';
el += '' + title + '';
el += '
';
}
- if (desc && cover.includes('description')) {
+ if (desc && coverpage.includes('description')) {
el += '
' + desc + '
';
}
el += '
';
diff --git a/layout/_partial/main/article/article_footer.ejs b/layout/_partial/main/article/article_footer.ejs
index 4ace8a2..23a224b 100644
--- a/layout/_partial/main/article/article_footer.ejs
+++ b/layout/_partial/main/article/article_footer.ejs
@@ -103,13 +103,13 @@ function layoutDiv() {
}
el += '>';
if (item == 'wechat') {
- el += '';
+ el += '';
} else if (item == 'weibo') {
- el += '';
+ el += '';
} else if (item == 'email') {
- el += '';
+ el += '';
} else if (item == 'link') {
- el += '';
+ el += '';
}
el += '';
}
diff --git a/layout/_partial/main/post_list/post_card.ejs b/layout/_partial/main/post_list/post_card.ejs
index 96ed244..0522bdd 100755
--- a/layout/_partial/main/post_list/post_card.ejs
+++ b/layout/_partial/main/post_list/post_card.ejs
@@ -90,7 +90,7 @@ function div_default() {
}
}
if (post.pin) {
- el += '';
+ el += '';
}
el += '
';
el += '';
diff --git a/layout/_partial/main/post_list/wiki_card.ejs b/layout/_partial/main/post_list/wiki_card.ejs
index b75b7dc..eb420f3 100644
--- a/layout/_partial/main/post_list/wiki_card.ejs
+++ b/layout/_partial/main/post_list/wiki_card.ejs
@@ -2,18 +2,10 @@
function layoutDiv() {
var el = '';
el += '';
- if (proj.logo && proj.logo.src) {
- el += '
';
- el += '';
- el += '
';
- }
+ el += ``
el += '
';
if (proj.tags && proj.tags.length > 0) {
- el += '
';
+ el += '
';
for (let tag of proj.tags) {
el += '' + tag + '';
}
diff --git a/layout/_partial/sidebar/index.ejs b/layout/_partial/sidebar/index.ejs
index 1d4d75e..0b6a5fb 100755
--- a/layout/_partial/sidebar/index.ejs
+++ b/layout/_partial/sidebar/index.ejs
@@ -56,7 +56,7 @@ function layoutWidgets() {
el += '
';
// all products
el += '';
- el += '';
+ el += '';
el += __('btn.all_wiki');
el += '';
// this product
diff --git a/layout/_partial/widgets/ghuser.ejs b/layout/_partial/widgets/ghuser.ejs
index 730d421..b8abff6 100644
--- a/layout/_partial/widgets/ghuser.ejs
+++ b/layout/_partial/widgets/ghuser.ejs
@@ -42,7 +42,7 @@ function layoutDiv() {
el += '
';
// follow
el += '';
- el += '';
+ el += '';
el += 'Follow';
el += '';
// menu
diff --git a/scripts/tags/lib/swiper.js b/scripts/tags/lib/swiper.js
index ba0ace5..c4de029 100644
--- a/scripts/tags/lib/swiper.js
+++ b/scripts/tags/lib/swiper.js
@@ -22,7 +22,7 @@ module.exports = ctx => function(args, content) {
})
}
}
- el += '