about summary refs log tree commit diff stats
path: root/layouts/index.html
diff options
context:
space:
mode:
authorAlan Pearce2018-06-17 19:40:34 +0200
committerAlan Pearce2018-06-17 19:40:34 +0200
commit7ffe02d5070b979f7a99727f9a919bc5a2956038 (patch)
treeaa11f9c8ae96862c0bf4aa612d354688bbd639a8 /layouts/index.html
parent5619a512a607df67ca5970494917e20471aab8c6 (diff)
downloadwebsite-7ffe02d5070b979f7a99727f9a919bc5a2956038.tar.lz
website-7ffe02d5070b979f7a99727f9a919bc5a2956038.tar.zst
website-7ffe02d5070b979f7a99727f9a919bc5a2956038.zip
Update hyde
Diffstat (limited to 'layouts/index.html')
-rw-r--r--layouts/index.html75
1 files changed, 35 insertions, 40 deletions
diff --git a/layouts/index.html b/layouts/index.html
index 1d1c3e8..870efea 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -1,40 +1,35 @@
-{{ partial "head.html" . }}
-<body class="{{ .Site.Params.themeColor }} {{if .Site.Params.layoutReverse}}layout-reverse{{end}}">
-	<main class="content container" role="main">
-    <section class="about">
-      {{ .Content }}
-    </section>
-		<section class="recent">
-			<h2>Recent Posts</h2>
-			<ul class="posts">
-				{{ range first 3 .Data.Pages }}
-				<li>
-					<a class="post-title" 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>
-		</section>
-    <section class="contact">
-			<h2>Contact</h2>
-			<ul>
-				{{ range .Site.Menus.contact }}
-				<li>
-					{{ if hasPrefix .URL "mailto:" }}
-					<a href="{{ .URL }}" class="u-email email" rel="me">{{ .Name }}</a>
-					{{ else }}
-					<a href="{{ .URL }}" class="u-url url" rel="me">{{ .Name }}</a>
-					{{ end }}
-				</li>
-				{{ end }}
-			</ul>
-		</section>
-    <footer>
-      {{ with .Site.Params.GPG }}
-      GPG Key: <a href="{{ .url }}" rel="pgpkey">{{ .fingerprint }}</a>
-      {{ end }}
-    </footer>
-	</main>
-  {{ partial "sidebar.html" . }}
-</body>
-</html>
+{{ define "main" -}}
+<section class="about">
+  {{ .Content }}
+  </section>
+  <section class="recent">
+    <h2>Recent Posts</h2>
+    <ul class="posts">
+      {{- range first 3 .Data.Pages }}
+      <li>
+        <a class="post-title" 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>
+  </section>
+  <section class="contact">
+    <h2>Contact</h2>
+    <ul>
+      {{- range .Site.Menus.contact }}
+      <li>
+        {{- if hasPrefix .URL "mailto:" }}
+        <a href="{{ .URL }}" class="u-email email" rel="me">{{ .Name }}</a>
+        {{- else }}
+        <a href="{{ .URL }}" class="u-url url" rel="me">{{ .Name }}</a>
+        {{- end }}
+      </li>
+      {{- end }}
+    </ul>
+  </section>
+  <footer>
+    {{- with .Site.Params.GPG }}
+    GPG Key: <a href="{{ .url }}" rel="pgpkey">{{ .fingerprint }}</a>
+    {{- end }}
+  </footer>
+{{- end }}
\ No newline at end of file