diff --git a/layouts/_default/list.html b/layouts/_default/list.html index f91cdb0..d113c49 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,12 +1,4 @@ {{ define "main" }} -
{{ .Params.description }}
{{ end }} - {{ if or (.Params.author) (.Params.date) }} -- {{ if .Params.author }}By {{ .Params.author }}{{ if .Date }}, {{ end }}{{ end }} - {{ if .Date }}{{ .Date.Format "2006-01-02" }}{{ end }} -
- {{ end }} -{{ end }} diff --git a/layouts/index.html b/layouts/index.html index c346e42..7076542 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,4 +1,5 @@ {{ define "main" }} - {{ .Content }} + {{ partial "title_and_desc.html" . }} + {{ partial "postlist.html" . }} {{ end }} diff --git a/layouts/partials/asside.html b/layouts/partials/asside.html new file mode 100644 index 0000000..58f24e7 --- /dev/null +++ b/layouts/partials/asside.html @@ -0,0 +1,9 @@ +{{define "aside" }} + {{ if .Params.description }}{{ .Params.description }}
{{ end }} + {{ if or (.Params.author) (.Params.date) }} ++ {{ if .Params.author }}By {{ .Params.author }}{{ if .Date }}, {{ end }}{{ end }} + {{ if .Date }}{{ .Date.Format "2006-01-02" }}{{ end }} +
+ {{ end }} +{{ end }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index a2e54dc..0468397 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,2 +1 @@{{ .Site.Copyright }}
- diff --git a/layouts/partials/postlist.html b/layouts/partials/postlist.html new file mode 100644 index 0000000..714ea05 --- /dev/null +++ b/layouts/partials/postlist.html @@ -0,0 +1,13 @@ +{{ range .Pages }} + {{ if not (isset .Params "hide") }} +