Browse Source

fix(nav): always right align search and dark mode icons

Also change nav links to be left aligned in the demo.
George Cushen 6 năm trước cách đây
mục cha
commit
8a7c4eb2aa
2 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 1 1
      exampleSite/config/_default/params.toml
  2. 1 1
      layouts/partials/navbar.html

+ 1 - 1
exampleSite/config/_default/params.toml

@@ -118,7 +118,7 @@ publication_types = [
 ]
 
 # Align the main menu to the right of the page? (true/false)
-menu_align_right = true
+menu_align_right = false
 
 # Link custom CSS and JS assets
 #   (relative to /static/css and /static/js respectively)

+ 1 - 1
layouts/partials/navbar.html

@@ -66,7 +66,7 @@
         {{ end }}
         {{ end }}
 
-      {{ if and (not $align_right) (or .IsTranslated .Site.Menus.main_right) }}
+      {{ if not $align_right | and (.IsTranslated | or .Site.Menus.main_right | or .Site.Params.search.engine | or .Site.Params.day_night) }}
       </ul>
       <ul class="navbar-nav ml-auto">
       {{ end }}