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

github.com/schollz/onetwothree.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZack Scholl <zack.scholl@gmail.com>2017-12-09 18:50:58 +0300
committerZack Scholl <zack.scholl@gmail.com>2017-12-09 18:50:58 +0300
commitbe4e3b964295d85bd98c11cc86c099a53d254def (patch)
tree8a82372ced61b8aacb68ece2dfd5f38a13289ff5
parentc9c2883e806bb950d50cd37eb651fb487f147a9e (diff)
Fix header
-rwxr-xr-xlayouts/_default/list.html31
-rwxr-xr-xlayouts/partials/header.html10
-rw-r--r--layouts/partials/middle.html6
-rw-r--r--static/css/style.css2
4 files changed, 11 insertions, 38 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 6a23cf5..41f4d47 100755
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -1,34 +1,5 @@
{{ partial "header.html" . }}
-
-<header>
-<strong><a href="/" style="color:black;">/posts</a></strong>
-{{ range $.Site.Params.navigation }}{{ with $.Site.GetPage "page" . }}
-&nbsp;·&nbsp;&nbsp;<a href="{{ lower .Permalink }}" style="color:black;"><strong>/{{ lower .Title }}</strong></a>
-{{ end }}{{ end }}
-
-{{ if .Draft }}
-DRAFT
-{{ end }}
-</header>
-
-<div class="content">
- {{ range first 100000 .Pages }}
- {{ if eq .Type "post"}}
- <p>
- <aside>{{ .Date.Format "January 2, 2006"}}
- <!--{{ if .Params.tags }}
- /// <em>{{ range $i, $e := .Params.tags }}{{ if $i }}, {{ end }}<a href="/tags/{{$e}}/">{{ $e }}</a>{{ end }}
- </em>
-
- {{ end }}-->
- </aside>
- <a href="{{ .Permalink }}" style="color:black;">{{ .Title }}</a>{{ if .Draft }} <span style="color:#FF4136;">(unpublished)</span>
-{{ end }}
- </p>
- {{ end }}
- {{ end }}
-</div>
-
+{{ partial "middle.html" . }}
{{ partial "footer.html" . }} \ No newline at end of file
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index c3635a1..550df1e 100755
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -37,4 +37,12 @@
<body>
{{ if $.Site.Params.analytics }}
<img src="https://analytics.schollz.com/1.png?page={{ .Permalink }}" width=1px height=1px style="float:right;">
-{{ end }} \ No newline at end of file
+{{ end }}
+
+<header>
+ <a href="/" style="color:#CCCCCC;"><strong>Posts</strong></a>{{ range $i, $e:= $.Site.Params.navigation }}{{ if eq $i -1}}{{else}}&nbsp;&nbsp;·&nbsp;&nbsp;{{end}}{{ with $.Site.GetPage "page" . }}<a href="{{ lower .Permalink }}" style="color:#CCCCCC;"><strong>{{ title .Title }}</strong></a>{{ end }}{{ end }}
+
+{{ if .Draft }}
+DRAFT
+{{ end }}
+</header> \ No newline at end of file
diff --git a/layouts/partials/middle.html b/layouts/partials/middle.html
index e683107..089c235 100644
--- a/layouts/partials/middle.html
+++ b/layouts/partials/middle.html
@@ -1,11 +1,5 @@
-<header>
-{{ range $i, $e:= $.Site.Params.navigation }}{{ if eq $i 0}}{{else}}&nbsp;&nbsp;·&nbsp;&nbsp;{{end}}{{ with $.Site.GetPage "page" . }}<a href="{{ lower .Permalink }}" style="color:black;"><strong>{{ title .Title }}</strong></a>{{ end }}{{ end }}
-{{ if .Draft }}
-DRAFT
-{{ end }}
-</header>
<div class="content">
{{ range first 100000 .Pages }}
diff --git a/static/css/style.css b/static/css/style.css
index 81ee619..cd8ae5f 100644
--- a/static/css/style.css
+++ b/static/css/style.css
@@ -19,7 +19,7 @@ hr {
dt {
font-weight: bold;
font-size: 1.25rem;
- margin-top: .5rem;
+ margin-top: 1.5em;
}
dd {