Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/htdvisser/hugo-base16-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHylke Visser <htdvisser@gmail.com>2016-05-25 17:44:11 +0300
committerHylke Visser <htdvisser@gmail.com>2016-05-25 17:44:11 +0300
commita7868103426abeea1b4da0bb61b0ac4a83af828c (patch)
tree8a5495a27289cf9e5e394f57f0b9e9fe00bfdfa8
parent058fd51e22c705f080a0fe09d998ad5af1394d12 (diff)
parentf4be15cd3678e9131ab01400e448e32417672607 (diff)
Merge branch 'dradtke-content_grouping'
-rw-r--r--layouts/partials/header.html8
-rw-r--r--layouts/partials/homepage.html2
-rw-r--r--static/css/style-cssnext.css8
-rw-r--r--static/css/style.css8
4 files changed, 24 insertions, 2 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index f1165cc..579548d 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -15,9 +15,15 @@
<body>
<header>
- <div class="container">
+ <div class="container clearfix">
<a class="path" href="{{ .Site.BaseURL }}">[{{ .Site.Title }}]</a>
<span class="caret"># _</span>
+ <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/layouts/partials/homepage.html b/layouts/partials/homepage.html
index 69b7090..cdbc78e 100644
--- a/layouts/partials/homepage.html
+++ b/layouts/partials/homepage.html
@@ -6,7 +6,7 @@
<h1 class="headline">Recent Posts</h1>
<div class="article-list">
- {{ range first 3 .Data.Pages }}
+ {{ range first 3 (where .Data.Pages "Section" "post") }}
{{ partial "article-list-item.html" . }}
{{ end }}
</div>
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%;