Skip to content

Commit

Permalink
[feat] update layout.jsx: articles viewed in a 2-column mode
Browse files Browse the repository at this point in the history
  • Loading branch information
shealligh committed Feb 13, 2024
1 parent 72dd0d7 commit c4a5f99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layout/layout.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module.exports = class extends Component {
const { site, config, page, helper, body } = this.props;

const language = page.lang || page.language || config.language;
const columnCount = Widgets.getColumnCount(config.widgets, config, page);
const columnCount = (['page', 'post'].includes(page.layout)) ? 2 : Widgets.getColumnCount(config.widgets, config, page);//修改这行

return <html lang={language ? language.substr(0, 2) : ''}>
<Head site={site} config={config} helper={helper} page={page} />
Expand Down

0 comments on commit c4a5f99

Please sign in to comment.