about summary refs log tree commit diff stats
path: root/layouts/_default/list.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_default/list.html')
-rw-r--r--layouts/_default/list.html27
1 files changed, 11 insertions, 16 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 6aa2a7d..cae4c08 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -1,16 +1,11 @@
-{{ partial "head.html" . }}
-  <body class="{{ .Site.Params.themeColor }} {{if .Site.Params.layoutReverse}}layout-reverse{{end}}">
-		<main class="content container" role="main">
-			<h1 class="page-title">{{ .Title }}</h1>
-			<ul class="posts">
-				{{ range .Data.Pages }}
-				<li>
-					<a class="post-title u-url" href="{{ .RelPermalink | replaceRE "/$" "" }}">{{ .Title }}</a>
-					<time class="post-date" datetime="{{ .Date.Format "2006-01-02T15:04:05Z" }}">{{ .Date.Format "Monday, 2 January 2006" }}</time>
-				</li>
-				{{ end }}
-			</ul>
-		</main>
-{{ partial "sidebar.html" . }}
-	</body>
-</html>
+{{ define "main" -}}
+<h1 class="page-title">{{ .Title }}</h1>
+<ul class="posts">
+{{ range .Data.Pages -}}
+  <li>
+    <a class="post-title u-url" href="{{ .RelPermalink }}">{{ .Title }}</a>
+    <time class="post-date" datetime="{{ .Date.Format "2006-01-02T15:04:05Z" }}">{{ .Date.Format "Monday, 2 January 2006" }}</time>
+  </li>
+{{- end }}
+</ul>
+{{- end }}