diff options
author | Zack Scholl <zack.scholl@gmail.com> | 2017-11-07 18:06:15 +0300 |
---|---|---|
committer | Zack Scholl <zack.scholl@gmail.com> | 2017-11-07 18:06:15 +0300 |
commit | 955b4630f91b9b9494253ef4de4b5ff4a818f44c (patch) | |
tree | 66c79e23612c91be9811e5f675d6aa25a712d5e6 | |
parent | 5c766d24927c9051ab48a92e9cb399d207173874 (diff) |
Show header only on index
-rwxr-xr-x | layouts/partials/header.html | 11 | ||||
-rw-r--r-- | layouts/partials/middle.html | 12 | ||||
-rwxr-xr-x | static/css/style.css | 10 |
3 files changed, 20 insertions, 13 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 75ecc48..e125dc0 100755 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -26,14 +26,3 @@ </head> <body> - -<header> - <a href="/">/posts</a> -{{ range $.Site.Params.navigation }}{{ with $.Site.GetPage "page" . }} - · <a href="{{ lower .Permalink }}" style="color:black;">/{{ .Title }}</a> -{{ end }}{{ end }} - -{{ if .Draft }} -DRAFT -{{ end }} -</header> diff --git a/layouts/partials/middle.html b/layouts/partials/middle.html index 3379b64..4e9cb9d 100644 --- a/layouts/partials/middle.html +++ b/layouts/partials/middle.html @@ -1,3 +1,15 @@ + +<header> +<a href="/">/posts</a> +{{ range $.Site.Params.navigation }}{{ with $.Site.GetPage "page" . }} + · <a href="{{ lower .Permalink }}" style="color:black;">/{{ .Title }}</a> +{{ end }}{{ end }} + +{{ if .Draft }} +DRAFT +{{ end }} +</header> + <div class="content"> {{ range first 100000 .Pages }} {{ if eq .Type "post"}} diff --git a/static/css/style.css b/static/css/style.css index ddffe73..da5a1f4 100755 --- a/static/css/style.css +++ b/static/css/style.css @@ -4,12 +4,12 @@ body, li p { font-family: 'Merriweather', serif;
}
-h1,h2,h3,h4,h5,h6,header,header.a {
+h1,h2,h3,h4,h5,h6,header,header.a, footer, footer.a {
text-transform: lowercase;
font-family: 'Alegreya Sans SC', sans-serif;
}
-header,header.a {
+header,header.a, footer, footer.a {
font-weight: bold;
}
@@ -92,6 +92,12 @@ header { border-bottom: 0.10em solid black;
}
+footer {
+ display:block;
+ padding: 0.5rem 0 5.5rem 0;
+ border-top: 0.10em solid black;
+}
+
@media all and (max-width:520px) {
div.content {
padding: 0;
|