diff --git a/layouts/partials/docs/html-head.html b/layouts/partials/docs/html-head.html index 363bcd2..c4f6a49 100644 --- a/layouts/partials/docs/html-head.html +++ b/layouts/partials/docs/html-head.html @@ -4,6 +4,5 @@ - {{ $styles := resources.Get "book.scss" | resources.ToCSS | resources.Minify | resources.Fingerprint }} \ No newline at end of file diff --git a/layouts/posts/baseof.html b/layouts/posts/baseof.html new file mode 100644 index 0000000..d147c1e --- /dev/null +++ b/layouts/posts/baseof.html @@ -0,0 +1,20 @@ + +{{- partial "docs/shared" -}} + + + + {{ partial "docs/html-head" . }} + {{ partial "docs/inject/head" . }} + + + +
+
+ {{ template "main" . }} +
+
+ {{ partial "docs/inject/body" . }} + + + + \ No newline at end of file diff --git a/layouts/posts/list.html b/layouts/posts/list.html new file mode 100644 index 0000000..4fda83f --- /dev/null +++ b/layouts/posts/list.html @@ -0,0 +1,20 @@ +{{ define "main" }} +
+ {{ $paginator := .Paginate (where .Pages "Params.hidden" "ne" true) }} + {{ range sort .Paginator.Pages }} +
+

+ {{ .Title }} +

+
{{ .Date.Format "January 2, 2006" }}
+

+ {{ .Summary }} + {{ if .Truncated }} + ... + {{ end }} +

+
+ {{ end }} + {{ template "_internal/pagination.html" . }} +
+{{ end }} \ No newline at end of file diff --git a/layouts/posts/single.html b/layouts/posts/single.html new file mode 100644 index 0000000..f31b1a9 --- /dev/null +++ b/layouts/posts/single.html @@ -0,0 +1,11 @@ +{{ define "main" }} +
+
+

{{ .Title }}

+
{{ .Date.Format "January 2, 2006" }}
+
+
+ {{- .Content -}} +
+
+{{ end }} \ No newline at end of file