Hexo修改預設顯示寬度
在我們安裝完next主題後,預設的介面寬度比較窄。這時可以選擇手動修改樣式,增加預設顯示寬度。
步驟
1.首先在next主題的_config檔案上檢視Schemes對應的是哪個主題。

2.開啟themes\next\source\css_schemes\Gemini\index.styl檔案,在最底部增加如下程式碼。
header{ width: 90% !important; } header.post-header { width: auto !important; } .container .main-inner { width: 90%; } .content-wrap { width: calc(100% - 260px); } .header { +tablet() { width: auto !important; } +mobile() { width: auto !important; } } .container .main-inner { +tablet() { width: auto !important; } +mobile() { width: auto !important; } } .content-wrap { +tablet() { width: 100% !important; } +mobile() { width: 100% !important; } }
3.上面兩步完成後,hexo clean,hexo g,hexo d。重新整理介面即可。