diff options
Diffstat (limited to 'layouts/partials/sidebar/left.html')
-rw-r--r-- | layouts/partials/sidebar/left.html | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/layouts/partials/sidebar/left.html b/layouts/partials/sidebar/left.html index 44d5307..f255389 100644 --- a/layouts/partials/sidebar/left.html +++ b/layouts/partials/sidebar/left.html @@ -1,4 +1,4 @@ -<aside class="sidebar left-sidebar sticky"> +<aside class="sidebar left-sidebar sticky {{ if .Site.Params.sidebar.compact }}compact{{ end }}"> <button class="hamburger hamburger--spin" type="button" id="toggle-menu" aria-label="{{ T `toggleMenu` }}"> <span class="hamburger-box"> <span class="hamburger-inner"></span> @@ -35,27 +35,27 @@ <h1 class="site-name"><a href="{{ .Site.BaseURL | relLangURL }}">{{ .Site.Title }}</a></h1> <h2 class="site-description">{{ .Site.Params.sidebar.subtitle }}</h2> </div> - - {{- with .Site.Menus.social -}} - <ol class="social-menu"> - {{ range . }} - <li> - <a - href='{{ .URL }}' - {{ if eq (default true .Params.newTab) true }}target="_blank"{{ end }} - {{ with .Name }}title="{{ . }}"{{ end }} - > - {{ $icon := default "link" .Params.Icon }} - {{ with $icon }} - {{ partial "helper/icon" . }} - {{ end }} - </a> - </li> - {{ end }} - </ol> - {{- end -}} </header> + {{- with .Site.Menus.social -}} + <ol class="social-menu"> + {{ range . }} + <li> + <a + href='{{ .URL }}' + {{ if eq (default true .Params.newTab) true }}target="_blank"{{ end }} + {{ with .Name }}title="{{ . }}"{{ end }} + > + {{ $icon := default "link" .Params.Icon }} + {{ with $icon }} + {{ partial "helper/icon" . }} + {{ end }} + </a> + </li> + {{ end }} + </ol> + {{- end -}} + <ol class="menu" id="main-menu"> {{ $currentPage := . }} {{ range .Site.Menus.main }} |