You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
<%
|
|
|
|
if (page.cover == undefined && theme.cover) {
|
|
|
|
page.cover = true;
|
|
|
|
}
|
|
|
|
if (site.data && site.data.layout) {
|
|
|
|
theme.layout = site.data.layout;
|
|
|
|
}
|
|
|
|
if (is_home() || is_category() || is_archive() || is_tag() || page.layout == 'list') {
|
|
|
|
if (page.sidebar == undefined) {
|
|
|
|
if (theme.layout.on_list.sidebar.length == 0) {
|
|
|
|
page.sidebar = [];
|
|
|
|
} else {
|
|
|
|
page.sidebar = theme.layout.on_list.sidebar;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
} else {
|
|
|
|
if (page.sidebar == undefined) {
|
|
|
|
if (theme.layout.on_page.sidebar.length == 0) {
|
|
|
|
page.sidebar = [];
|
|
|
|
} else {
|
|
|
|
page.sidebar = theme.layout.on_page.sidebar;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (page.sidebar == false) {
|
|
|
|
page.sidebar = [];
|
|
|
|
}
|
|
|
|
%>
|