diff --git a/layouts/index.html b/layouts/index.html index 622e814..9c07738 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,26 +1,54 @@ {{ define "main" }}
- {{ partial "brand.html" . }} - {{ with .Content }} -
- {{ . }} -
- {{ end }} -
- {{ range .Site.RegularPages }} - {{/* range where .Site.RegularPages "Type" "posts" */}} - {{ if ne .Draft true}} -

- {{ if .IsNode }} - {{ .Title}} - {{ else }} - {{ .Title }}{{ if .Draft }} :: Draft {{end}} - {{ end }} -

-

{{ truncate 140 .Summary }}

- {{ end }} - {{ end }} +{{ partial "brand.html" . }} +{{ with .Content }} +
+ {{ . }}
- {{ partial "footer.html" . }} +{{ end }} +
+{{ range (.Paginate .Site.RegularPages).Pages }} +{{/* range where .Site.RegularPages "Type" "posts" */}} +{{ if ne .Draft true}} +

+ {{ if .IsNode }} + {{ .Title}} + {{ else }} + {{ .Title }}{{ if .Draft }} :: Draft {{end}} + {{ end }} +

+ + {{ if .Description }} +

{{ .Description }}

+ {{ else }} +

{{ truncate 140 .Summary }}

+ {{ end }} + +{{ end }} +{{ end }} +
+ +{{ if and (.Paginator) (gt .Paginator.TotalPages 1) }} +
+ + +{{ if .Paginator.HasPrev }} +« +{{ end }} + + + +{{.Paginator.PageNumber}} / {{.Paginator.TotalPages}} + + + +{{ if .Paginator.HasNext }} +» +{{ end }} + + +{{ end }} + +{{ partial "footer.html" . }}
{{ end }} diff --git a/layouts/partials/content.header.html b/layouts/partials/content.header.html index 0557fa4..e20e82f 100644 --- a/layouts/partials/content.header.html +++ b/layouts/partials/content.header.html @@ -1,10 +1,6 @@

- {{- if .IsNode -}} - {{- .Title -}} - {{- else -}} - {{- .Title -}}{{- if .Draft -}} :: Draft {{- end -}} - {{- end -}} +{{- .Title -}}{{- if .Draft -}} :: Draft {{- end -}}

{{- if .IsPage -}} @@ -12,7 +8,7 @@

{{ .Params.subtitle }}

{{- end -}} - {{- if or (eq .Type "post") (.Params.meta) -}} + {{- if .Params.meta -}} {{- if .Params.author -}}

{{ .Params.author }}

diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index b2f490e..4d0ea85 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -16,51 +16,51 @@