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-11-07 18:21:46 +0300
committerZack Scholl <zack.scholl@gmail.com>2017-11-07 18:21:46 +0300
commit1a1f03289bb66382244d9095a0241926bf1bb117 (patch)
tree0f2f7b7f3a33169482dd7ab4b69b2b31e4e1e518
parent955b4630f91b9b9494253ef4de4b5ff4a818f44c (diff)
Simplify the pages
-rwxr-xr-xlayouts/_default/single.html19
1 files changed, 13 insertions, 6 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 631cad1..c0f73d9 100755
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -1,5 +1,8 @@
{{ partial "header.html" . }}
+{{ if .Draft }}
+DRAFT
+{{ end }}
<div class="content">
<h1>{{ .Title }} <aside>{{ range .Params.tags }}<a href="/tags/{{.}}/" class="w3-tag">/{{.}}</a>&nbsp;{{end}} </aside></h1>
@@ -7,8 +10,16 @@
</div>
-{{ if (eq .Type "post") }}
+
+<header>
+ <a href="/">/posts</a>
+{{ range $.Site.Params.navigation }}{{ with $.Site.GetPage "page" . }}
+&nbsp;·&nbsp;&nbsp;<a href="{{ lower .Permalink }}" style="color:black;">/{{ .Title }}</a>
+{{ end }}{{ end }}
+
+</header>
<footer>
+{{ if (eq .Type "post") }}
<p><small><em>Written {{ .Date.Format "January 2, 2006"}}. </em>
{{ if $.Site.Params.twitter }}
Leave a comment for me on Twitter <a href="https://twitter.com/intent/tweet?text=%40{{ $.Site.Params.twitter }}%20%23{{ replace (.URL) "/" "" }}%20">@{{ $.Site.Params.twitter }}</a>.
@@ -18,13 +29,9 @@
<p>
{{ if .PrevInSection }}<a href="{{ .PrevInSection.URL }}">← {{ .PrevInSection.Title }}</a>&nbsp;{{end}}{{ if .NextInSection }}<a href="{{ .NextInSection.URL }}" style="float:right;">{{ .NextInSection.Title }} →</a>{{ end }}
</p>
-
-</span>
-
-</footer>
{{ end }}
-
+</footer>