diff options
author | Hylke Visser <htdvisser@gmail.com> | 2016-05-25 17:43:56 +0300 |
---|---|---|
committer | Hylke Visser <htdvisser@gmail.com> | 2016-05-25 17:43:56 +0300 |
commit | f4be15cd3678e9131ab01400e448e32417672607 (patch) | |
tree | 8a5495a27289cf9e5e394f57f0b9e9fe00bfdfa8 | |
parent | 0dcd202cc3d5417481d49922a7ead820b223fc02 (diff) |
Fix pages links
-rw-r--r-- | layouts/partials/header.html | 17 | ||||
-rw-r--r-- | static/css/style-cssnext.css | 8 | ||||
-rw-r--r-- | static/css/style.css | 8 |
3 files changed, 23 insertions, 10 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 18d728e..579548d 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -15,18 +15,15 @@ <body> <header> - <div class="container"> + <div class="container clearfix"> <a class="path" href="{{ .Site.BaseURL }}">[{{ .Site.Title }}]</a> <span class="caret"># _</span> - {{ with (where $.Data.Pages "Section" "pages") }} - <div style="float: right;"> - {{ range $i, $page := . }} - {{ $isFirst := eq $i 0 }} - {{ if not $isFirst }}|{{ end }} - <a class="path" href="{{ .RelPermalink }}">{{ $page.Title }}</a> - {{ end }} - </div> - {{ end }} + <div class="right"> + {{ range $i, $page := (where .Site.Pages "Section" "pages") }} + {{ if not (eq $i 0) }}|{{ end }} + <a class="path" href="{{ $page.RelPermalink }}">{{ $page.Title }}</a> + {{ end }} + </div> </div> </header> diff --git a/static/css/style-cssnext.css b/static/css/style-cssnext.css index 96d12d0..d434265 100644 --- a/static/css/style-cssnext.css +++ b/static/css/style-cssnext.css @@ -56,6 +56,14 @@ body { margin-right: auto; } +div.right { + float:right; +} + +div.clearfix { + overflow: auto; +} + @media (--breakpoint-md) { .container { width: 100%; diff --git a/static/css/style.css b/static/css/style.css index 0717cd2..e1d0585 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -38,6 +38,14 @@ body { margin-right: auto; } +div.right { + float:right; +} + +div.clearfix { + overflow: auto; +} + @media (max-width: 52em) { .container { width: 100%; |