<%= theme.navbar.blog_title || config.title %>
    <% for(const each of theme.navbar.menu || []) { %> <% if (!each.submenu && !each.link) continue %> <% var text = each.name || __(each.key + '.menu') || __(each.key + '.title') %> <% if (text.indexOf('.menu') !== -1 || text.indexOf('.title') !== -1) { text = each.key } %> <% if (each.submenu) { %>
  • <%- each.icon ? '' : '' %> <%- text %>
    <% for(const subEach of each.submenu || []) { %> <% if (!subEach.link) continue %> <% var subText = subEach.name || __(subEach.key + '.title') %> <% if (subText.indexOf('.title') !== -1) { subText = subEach.key } %> <%- subEach.icon ? '' : '' %> <%- subText %> <% } %>
  • <% } else { %>
  • <%- each.icon ? '' : '' %> <%- text %>
  • <% } %> <% } %> <% if(theme.search.enable) { %>
  • <% import_js(theme.static_prefix.internal_js, 'local-search.js') %> <% } %> <% if(theme.dark_mode && theme.dark_mode.enable) { %>
  • <% } %>