diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
new file mode 100644
index 0000000..33e5cda
--- /dev/null
+++ b/layouts/_default/baseof.html
@@ -0,0 +1,20 @@
+
+
+
+
+
+
+ {{ .Title }}
+ {{ with .Site.Params.description }}{{ end }}
+ {{ with .Site.Params.author }}{{ end }}
+
+ {{ with .OutputFormats.Get "RSS" -}}
+ {{ printf `` .Rel .MediaType.Type .RelPermalink $.Site.Title | safeHTML }}
+ {{- end }}
+
+
+ {{ partial "header" . }}
+ {{ block "main" . }}{{ end }}
+ {{ partial "footer" . }}
+
+
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index bc7f4e6..68fb00c 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -1,10 +1,16 @@
-{{ partial "header.html" . }}
+{{ define "main" }}
- {{ $paginator := .Paginate (where .Data.Pages "Type" "post") }}
- {{ range $paginator.Pages }}
- {{ partial "summary.html" . }}
+ {{ if or .Title .Content }}
+
+ {{ with .Title }}
{{ . }}
{{ end }}
+ {{ with .Content }}
{{ . }}
{{ end }}
+
+ {{ end }}
+
+ {{ range .Paginator.Pages }}
+ {{ .Render "summary" }}
{{ end }}
{{ partial "pagination.html" . }}
{{ partial "sidebar.html" . }}
-{{ partial "footer.html" . }}
+{{ end }}
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 4593944..af8398c 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -1,4 +1,4 @@
-{{ partial "header.html" . }}
+{{ define "main" }}
{{ .Title }}
@@ -9,7 +9,7 @@
@@ -19,4 +19,4 @@
{{ partial "sidebar.html" . }}
-{{ partial "footer.html" . }}
+{{ end }}
diff --git a/layouts/_default/summary.html b/layouts/_default/summary.html
new file mode 100644
index 0000000..9acf434
--- /dev/null
+++ b/layouts/_default/summary.html
@@ -0,0 +1,13 @@
+
+
+
+ {{ range .Params.tags }}
+ {{ . }}
+ {{ end }}
+
+ {{ .Summary }}
+ {{ if .Truncated }}
+
Read more...
+ {{ end }}
+
+
diff --git a/layouts/index.html b/layouts/index.html
index 56c41f3..ab01f67 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -1,10 +1,10 @@
-{{ partial "header.html" . }}
+{{ define "main" }}
- {{ $paginator := .Paginate (where .Site.Pages "Type" "post") }}
+ {{ $paginator := .Paginate (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) }}
{{ range $paginator.Pages }}
- {{ partial "summary.html" . }}
+ {{ .Render "summary" }}
{{ end }}
{{ partial "pagination.html" . }}
{{ partial "sidebar.html" . }}
-{{ partial "footer.html" . }}
+{{ end }}
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index 6551e25..a34c170 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -1,5 +1,3 @@
-
-