diff --git a/README.md b/README.md
index 28d5bd9..a2c50d9 100644
--- a/README.md
+++ b/README.md
@@ -132,6 +132,7 @@ googleAnalytics = "" # Enable Google Analytics by entering your tracking id
dateFormat = "January 02, 2006" # Change the format of dates
colorTheme = "" # dark-green, dark-blue, dark-red, dark-violet
customCSS = ["css/custom.css"] # Include custom CSS files
+ mainMenuAlignment = "right" # Align main menu (desktop version) to the right side
authorbox = true # Show authorbox at bottom of single pages if true
toc = true # Enable Table of Contents for all site pages
tocOpen = true # Open Table of Contents block. Optional
diff --git a/layouts/partials/menu.html b/layouts/partials/menu.html
index 383f89a..9621473 100644
--- a/layouts/partials/menu.html
+++ b/layouts/partials/menu.html
@@ -8,11 +8,11 @@
-
+
{{- $currentNode := . }}
{{- range sort .Site.Menus.main }}
{{- if .Name}}
- - {{if or ($currentNode.IsMenuCurrent "main" .) ($currentNode.HasMenuCurrent "main" .) }}{{ .Name }}{{ else }}{{ .Name }}{{end}}
+ - {{ if or ($currentNode.IsMenuCurrent "main" .) ($currentNode.HasMenuCurrent "main" .) }}{{ .Name }}{{ else }}{{ .Name }}{{ end }}
{{- end }}
{{- end }}
diff --git a/static/css/main.css b/static/css/main.css
index 9d3c020..b89a3fc 100644
--- a/static/css/main.css
+++ b/static/css/main.css
@@ -598,7 +598,7 @@ button:not(:-moz-focusring):focus > .main-nav__btn-box {
}
.main-nav {
- display: inline-block;
+ display: flex;
}
.main-nav__item {
@@ -606,6 +606,10 @@ button:not(:-moz-focusring):focus > .main-nav__btn-box {
border: 0;
}
+ .main-nav__list--right {
+ margin-left: auto;
+ }
+
.main-nav__list.main-nav__list--active {
position: initial;
border: 0;