diff options
author | max.mehl <max.mehl@fsfe.org> | 2020-10-09 19:53:42 +0300 |
---|---|---|
committer | Max Mehl <mail@mehl.mx> | 2020-10-29 19:56:21 +0300 |
commit | e24303521317fe1227ffe8000f3fb07a6571f64c (patch) | |
tree | ca7dc3b0cc286a3f8edfe49b1a59e06ceb54b111 /layouts | |
parent | f0e54330086108a7fedd19a4472bf9944e1015fb (diff) |
full-sized width with inner container
adapt a few other sizes, paddings etc
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/_default/baseof.html | 4 | ||||
-rw-r--r-- | layouts/partials/header.html | 4 | ||||
-rw-r--r-- | layouts/partials/logo.html | 30 | ||||
-rw-r--r-- | layouts/partials/menu.html | 38 |
4 files changed, 38 insertions, 38 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 57cb286..37db06d 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -33,9 +33,8 @@ {{- end }} </head> <body class="body"> - <div class="container container--outer"> {{ partial "header" . }} - <div class="wrapper flex"> + <div class="container wrapper flex"> <div class="primary"> {{ block "main" . }} {{ with .Content }} @@ -48,7 +47,6 @@ {{ partial "sidebar.html" . }} </div> {{ partial "footer" . }} - </div> <script async defer src="{{ "js/menu.js" | relURL }}"></script> {{ range .Site.Params.customJS -}} <script src="{{ . | relURL }}"></script> diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 8a2d494..33e0899 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -1,6 +1,4 @@ <header class="header"> - <div class="container header__container"> - {{ partial "logo.html" . }} - </div> + {{ partial "logo.html" . }} </header> {{ partial "menu.html" . }} diff --git a/layouts/partials/logo.html b/layouts/partials/logo.html index bf7d668..b7566c2 100644 --- a/layouts/partials/logo.html +++ b/layouts/partials/logo.html @@ -7,18 +7,20 @@ {{- $logoMix := and $logoImage $logoTitle -}} <div class="logo{{ with $logoMix }} logo--mixed{{ end }}"> - <a class="logo__link" href="{{ "" | relLangURL }}"{{ with $logoTitle }} title="{{ . }}"{{ end }} rel="home"> - {{ with $logoImage -}} - <div class="logo__item logo__imagebox"> - <img class="logo__img" src="{{ . | relURL }}"> - </div> - {{- end -}} - {{ with $logoTitle -}} - <div class="logo__item logo__text"> - <div class="logo__title">{{ . }}</div> - {{ with $logoSubtitle }}<div class="logo__tagline">{{ . }}</div>{{ end }} - </div> - {{- end }} - </a> + <div class="container"> + <a class="logo__link" href="{{ "" | relLangURL }}"{{ with $logoTitle }} title="{{ . }}"{{ end }} rel="home"> + {{ with $logoImage -}} + <div class="logo__item logo__imagebox"> + <img class="logo__img" src="{{ . | relURL }}"> + </div> + {{- end -}} + {{ with $logoTitle -}} + <div class="logo__item logo__text"> + <div class="logo__title">{{ . }}</div> + {{ with $logoSubtitle }}<div class="logo__tagline">{{ . }}</div>{{ end }} + </div> + {{- end }} + </a> + </div> </div> -{{- end }}
\ No newline at end of file +{{- end }} diff --git a/layouts/partials/menu.html b/layouts/partials/menu.html index dab4245..24cf4b5 100644 --- a/layouts/partials/menu.html +++ b/layouts/partials/menu.html @@ -1,23 +1,25 @@ {{- if .Site.Menus.main }} <nav class="menu"> - <button class="menu__btn" aria-haspopup="true" aria-expanded="false" tabindex="0"> - <span class="menu__btn-title" tabindex="-1">{{ T "menu_label" }}</span> - </button> - <ul class="menu__list"> - {{- $currentNode := . }} - {{- range .Site.Menus.main }} - {{- if .Name }} - <li class="menu__item{{ if or ($currentNode.IsMenuCurrent "main" .) ($currentNode.HasMenuCurrent "main" .) }} menu__item--active{{ end }}"> - <a class="menu__link" href="{{ .URL }}"> - {{ .Pre }} - <span class="menu__text">{{ .Name }}</span> - {{ .Post }} - </a> - </li> - {{- end }} - {{- end }} - </ul> + <div class="container"> + <button class="menu__btn" aria-haspopup="true" aria-expanded="false" tabindex="0"> + <span class="menu__btn-title" tabindex="-1">{{ T "menu_label" }}</span> + </button> + <ul class="menu__list"> + {{- $currentNode := . }} + {{- range .Site.Menus.main }} + {{- if .Name }} + <li class="menu__item{{ if or ($currentNode.IsMenuCurrent "main" .) ($currentNode.HasMenuCurrent "main" .) }} menu__item--active{{ end }}"> + <a class="menu__link" href="{{ .URL }}"> + {{ .Pre }} + <span class="menu__text">{{ .Name }}</span> + {{ .Post }} + </a> + </li> + {{- end }} + {{- end }} + </ul> + </div> </nav> {{ else -}} <div class="divider"></div> -{{- end }}
\ No newline at end of file +{{- end }} |