diff --git a/site/layouts/_default/baseof.html b/site/layouts/_default/baseof.html index 7943483..247f65d 100644 --- a/site/layouts/_default/baseof.html +++ b/site/layouts/_default/baseof.html @@ -5,10 +5,9 @@ {{ partial "nav.html" . }} - {{ block "header" . }}{{ end }} {{ block "content" . }}{{ end }} diff --git a/site/layouts/_default/list.html b/site/layouts/_default/list.html index 16ef30c..337881b 100644 --- a/site/layouts/_default/list.html +++ b/site/layouts/_default/list.html @@ -1,24 +1,26 @@ -{{ define "header" }} -
-

{{ .Title }}

- {{ with .Description }}

{{ . }}

{{ end }} -
-{{ end }} - {{ define "content" }} -
-
- {{ range .Pages }} -
-
-

{{ .Title }}

-

- -

-
- {{ with .Summary }}

{{ . }}

{{ end }} -
- {{ end }} -
+
+
+

{{ .Title }}

+ {{- with .Description }} +

{{ . }}

+ {{- end }} +
+ + {{ .Content }} + + {{ range .Pages }} +
+
+

{{ .Title }}

+ {{- if not .Date.IsZero }} +

+ +

+ {{- end }} +
+ {{- with .Description }}

{{ . }}

{{ end }} +
+ {{ end }}
{{ end }} diff --git a/site/layouts/_default/single.html b/site/layouts/_default/single.html index 2f47e13..98355f9 100644 --- a/site/layouts/_default/single.html +++ b/site/layouts/_default/single.html @@ -1,23 +1,39 @@ -{{ define "header" }} -
- {{ with .Type }}

{{ . }}

{{ end }} -

- - {{ with .Params.author }} · {{ . }}{{ end }} -

- {{ with .Params.tags }} -

{{ range . }}#{{ . }} {{ end }}

- {{ end }} -
-{{ end }} - {{ define "content" }} -
+
+
+

{{ .Title }}

+ {{- with .Description }} +

{{ . }}

+ {{- end }} + {{- if or (not .Date.IsZero) .Params.author }} +

+ {{- if not .Date.IsZero -}} + + {{- end -}} + {{- if and (not .Date.IsZero) .Params.author }} · {{ end -}} + {{- with .Params.author }}{{ . }}{{ end -}} +

+ {{- end }} + {{- with .GetTerms "tags" }} + + {{- end }} +
+ {{ .Content }} - {{ with .Params.footer }} + + {{- if or .PrevInSection .NextInSection }} - {{ end }} + {{- end }}
{{ end }} diff --git a/site/layouts/console/single.html b/site/layouts/console/single.html index d4ed500..8347338 100644 --- a/site/layouts/console/single.html +++ b/site/layouts/console/single.html @@ -1,87 +1,37 @@ -{{ define "header" }} -
- {{- if .Description -}} -
-

{{ .Title }}

-

{{ .Description }}

-
- {{- else -}} -

{{ .Title }}

- {{- end }} -
-{{ end }} - {{ define "content" }}
{{- with .TableOfContents -}} {{- end -}} diff --git a/site/layouts/docs/single.html b/site/layouts/docs/single.html index f335f88..0fafb33 100644 --- a/site/layouts/docs/single.html +++ b/site/layouts/docs/single.html @@ -1,16 +1,3 @@ -{{ define "header" }} -
- {{- if .Description -}} -
-

{{ .Title }}

-

{{ .Description }}

-
- {{- else -}} -

{{ .Title }}

- {{- end }} -
-{{ end }} - {{ define "content" }}
@@ -32,20 +19,25 @@
+
+

{{ .Title }}

+ {{- with .Description }} +

{{ . }}

+ {{- end }} +
+ {{ .Content }} {{- if or .PrevInSection .NextInSection -}} -