aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--layouts/_default/single.html4
-rw-r--r--layouts/docs/list.html2
-rw-r--r--layouts/docs/single.html10
-rw-r--r--layouts/partials/breadcrumbs.html13
4 files changed, 28 insertions, 1 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index aa27b23..354384d 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -2,8 +2,12 @@
<h1>{{ .Title }}</h1>
+<p>
{{ if ne .PublishDate.Year 1 }}{{ .PublishDate.Format "2006-01-02" }} - {{ end }}{{ .Description }}
+{{ if (isset .Params "tags") }}{{ if ge (len .Params.tags) 1 }}<br/>Tag{{ if ge (len .Params.tags) 2 }}s{{ end }}: {{ range .Params.tags }}<a href="/tags/{{ . }}">{{ . }}</a> {{ end }}{{ end }}{{ end }}
+</p>
+
{{ partial "toc.html" . }}
{{ .Content }}
diff --git a/layouts/docs/list.html b/layouts/docs/list.html
index bbd9f22..b6087f8 100644
--- a/layouts/docs/list.html
+++ b/layouts/docs/list.html
@@ -1,6 +1,6 @@
{{ define "main" }}
-<h1>{{ .Title }}</h1>
+{{ partial "breadcrumbs.html" . }}
{{ with .Content }}
{{ . }}
diff --git a/layouts/docs/single.html b/layouts/docs/single.html
new file mode 100644
index 0000000..124695b
--- /dev/null
+++ b/layouts/docs/single.html
@@ -0,0 +1,10 @@
+{{ define "main" }}
+
+{{ partial "breadcrumbs.html" . }}
+
+{{ partial "toc.html" . }}
+
+{{ .Content }}
+
+{{ end }}
+
diff --git a/layouts/partials/breadcrumbs.html b/layouts/partials/breadcrumbs.html
new file mode 100644
index 0000000..814ec26
--- /dev/null
+++ b/layouts/partials/breadcrumbs.html
@@ -0,0 +1,13 @@
+<p>
+{{ if ne .Parent nil }}
+{{ if ne .Parent.Parent nil }}
+{{ if ne .Parent.Parent.Parent nil }}
+<a href="{{ .Parent.Parent.Parent.Permalink }}">{{ .Parent.Parent.Parent.Title }}</a> &gt;
+{{ end }}
+<a href="{{ .Parent.Parent.Permalink }}">{{ .Parent.Parent.Title }}</a> &gt;
+{{ end }}
+<a href="{{ .Parent.Permalink }}">{{ .Parent.Title }}</a> &gt;
+{{ end }}
+<strong>{{ .Title }}</strong><br/>
+{{ .Description }}
+</p>