這是 Shoka 主題可能會出現的 bug,如果使用 ShokaX 可能不需要修改
- 添加隨機文章,來增加底部高度
/_config.shoka.yml | widgets: |
| random_posts: true |
- 添加
min-height
hexo-theme-shoka\source\css\_common\outline\outline.styl | >.inner { |
| width: $content-desktop; |
| align-items: flex-start; |
| min-height: 100vh; |
| display: flex; |
| justify-content: space-between; |
| if (hexo-config('sidebar.position') == 'left') { |
/scripts/addFooterMinHeight.js | hexo.extend.filter.register('theme_inject', function(injects) { |
| injects.style.push('views/addFooterMinHeight.styl'); |
| }); |
/views/addFooterMinHeight.styl | main { |
| >.inner { |
| min-height: 90vh; |
| } |
| } |