';
- if (post.cover_info) {
+ let info = post.cover_info;
+ if (info) {
el += '
';
} else {
el += 'position="bottom">';
}
- if (post.cover_info.meta) {
- el += '
' + post.cover_info.meta + '
';
+ if (info.meta) {
+ el += '
' + info.meta + '
';
}
- if (post.cover_info.title) {
- el += '
' + post.cover_info.title + '
';
+ if (info.title) {
+ el += '
' + info.title + '
';
}
- if (post.cover_info.subtitle) {
- el += '
' + post.cover_info.subtitle + '
';
+ if (info.subtitle) {
+ el += '
' + info.subtitle + '
';
}
el += '
';
diff --git a/layout/_partial/sidebar/logo.ejs b/layout/_partial/sidebar/logo.ejs
index 1616b83..c810444 100644
--- a/layout/_partial/sidebar/logo.ejs
+++ b/layout/_partial/sidebar/logo.ejs
@@ -21,7 +21,7 @@ function layoutTitle(main, url, sub) {
}
function layoutDiv() {
var el = '';
- if (page.layout == 'wiki' && proj && proj.index != false) {
+ if (page.layout == 'wiki') {
el += '