diff --git a/layouts/_default/section.html b/layouts/_default/section.html new file mode 100644 index 0000000..1da8370 --- /dev/null +++ b/layouts/_default/section.html @@ -0,0 +1,37 @@ +{{ partial "header.html" . }} + +{{ with .Content }} + {{- . -}} +{{ end }} + +{{ if eq (len .Content) 0 }} +
+ + {{ range sort .Paginator.Pages }} +
+

{{ .Title }}

+
+ {{ .Summary | plainify | safeHTML }} + ... + +
+
+ {{ if .Params.tags }} + {{ partial "tags" .Params.tags }} + {{ end }} + {{ end }} + {{ partial "pagination.html" . }} + +
+{{ end }} + +{{ partial "footer.html" . }} + + diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 9e30929..df20cc8 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,3 +1,11 @@ {{ partial "header.html" . }} -{{ partial "content.html" . }} +
+ {{ if not .Date.IsZero }} +

{{ .Date.Format "02-01-2006" }}

+ {{ end }} + {{ .Content }} + {{ if .Params.tags }} + {{ partial "tags" .Params.tags }} + {{ end }} +
{{ partial "footer.html" . }} diff --git a/layouts/index.html b/layouts/index.html index f2f89dd..9861e77 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,4 +1,6 @@ {{ partial "header.html" . }} -{{ partial "content.html" . }} +
+ {{ .Content }} +
{{ partial "recentnews.html" . }} {{ partial "footer.html" . }} diff --git a/layouts/partials/content.html b/layouts/partials/content.html deleted file mode 100644 index 6e3289e..0000000 --- a/layouts/partials/content.html +++ /dev/null @@ -1,15 +0,0 @@ -
- -{{ if not .IsHome }} -{{ if not .Date.IsZero }} -

{{ .Date.Format "02-01-2006" }}

-{{ end }} -{{ end }} - - {{ .Content }} - -{{ if .Params.tags }} - {{ partial "tags" .Params.tags }} -{{ end }} - -