hexo 的 Next 主题 将Nav按钮从左移至右

-

swblog/themes/next/layout/_partials/header/brand.njk 内

将最后的

1
2
3
4
5
6
7
<div class="site-nav-right">
<div class="toggle popup-trigger">
{%- if theme.algolia_search.enable or theme.local_search.enable %}
<i class="fa fa-search fa-fw fa-lg"></i>
{%- endif %}
</div>
</div>

删除

把最前面的

1
2
3
4
5
6
7
8
9
<div class="site-nav-toggle">
<div class="toggle" aria-label="{{ __('accessibility.nav_toggle') }}" role="button">
{%- if theme.menu %}
<span class="toggle-line"></span>
<span class="toggle-line"></span>
<span class="toggle-line"></span>
{%- endif %}
</div>
</div>

放在最后