File tree Expand file tree Collapse file tree 4 files changed +10
-13
lines changed Expand file tree Collapse file tree 4 files changed +10
-13
lines changed Original file line number Diff line number Diff line change 3
3
# See: https://theme-next.org/docs/theme-settings/
4
4
# ---------------------------------------------------------------
5
5
6
- # If false, merge configs from `_data/next.yml` into default configuration (rewrite).
7
- # If true, will fully override default configuration by options from `_data/next.yml` (override). Only for NexT settings.
8
- # And if true, all config from default NexT `_config.yml` have to be copied into `next.yml`. Use if you know what you are doing.
9
- # Useful if you want to comment some options from NexT `_config.yml` by `next.yml` without editing default config.
10
- override : false
11
-
12
6
# Console reminder if new version released.
13
7
reminder : false
14
8
@@ -116,11 +110,11 @@ darkmode: false
116
110
# When running the site in a subdirectory (e.g. yoursite.com/blog), remove the leading slash from link value (/archives -> archives).
117
111
# External url should start with http:// or https://
118
112
menu :
119
- home : / || fa fa-home
113
+ # home: / || fa fa-home
120
114
# about: /about/ || fa fa-user
121
115
# tags: /tags/ || fa fa-tags
122
116
# categories: /categories/ || fa fa-th
123
- archives : /archives/ || fa fa-archive
117
+ # archives: /archives/ || fa fa-archive
124
118
# schedule: /schedule/ || fa fa-calendar
125
119
# sitemap: /sitemap.xml || fa fa-sitemap
126
120
# commonweal: /404/ || fa fa-heartbeat
Original file line number Diff line number Diff line change 1
1
<div class =" site-brand-container" >
2
2
<div class =" site-nav-toggle" >
3
3
<div class =" toggle" aria-label =" {{ __('accessibility.nav_toggle') }}" >
4
- <span class =" toggle-line toggle-line-first" ></span >
5
- <span class =" toggle-line toggle-line-middle" ></span >
6
- <span class =" toggle-line toggle-line-last" ></span >
4
+ {%- if theme .menu %}
5
+ <span class =" toggle-line toggle-line-first" ></span >
6
+ <span class =" toggle-line toggle-line-middle" ></span >
7
+ <span class =" toggle-line toggle-line-last" ></span >
8
+ {%- endif %}
7
9
</div >
8
10
</div >
9
11
Original file line number Diff line number Diff line change 1
1
{% import ' menu-item.njk' as menu_item with context %}
2
2
3
- <nav class =" site-nav" >
4
3
{%- if theme .menu %}
4
+ <nav class =" site-nav" >
5
5
<ul id =" menu" class =" main-menu menu" >
6
6
{%- for name , path in theme .menu %}
7
7
{%- set respath = path %}
30
30
</li >
31
31
{%- endif %}
32
32
</ul >
33
- {%- endif %}
34
33
</nav >
34
+ {%- endif %}
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ NexT.boot.registerEvents = function() {
11
11
document . querySelector ( '.site-nav-toggle .toggle' ) . addEventListener ( 'click' , ( ) => {
12
12
event . currentTarget . classList . toggle ( 'toggle-close' ) ;
13
13
var siteNav = document . querySelector ( '.site-nav' ) ;
14
+ if ( ! siteNav ) return ;
14
15
var animateAction = siteNav . classList . contains ( 'site-nav-on' ) ? 'slideUp' : 'slideDown' ;
15
16
16
17
if ( typeof Velocity === 'function' ) {
You can’t perform that action at this time.
0 commit comments