about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2017-08-29 21:37:25 +0200
committerAlan Pearce2017-08-29 21:37:25 +0200
commit1938abbd1516e775448af7e9bca58a0a09809270 (patch)
tree3f5e703a8d82bfced6cda738c1cf0b331d5bdbeb
parentbdf77d330e3e8d30d698c51646eb640e15fb3afa (diff)
downloadwebsite-1938abbd1516e775448af7e9bca58a0a09809270.tar.lz
website-1938abbd1516e775448af7e9bca58a0a09809270.tar.zst
website-1938abbd1516e775448af7e9bca58a0a09809270.zip
Move contact info to homepage
-rw-r--r--layouts/index.html32
m---------themes/hyde0
2 files changed, 32 insertions, 0 deletions
diff --git a/layouts/index.html b/layouts/index.html
new file mode 100644
index 0000000..18d5a7f
--- /dev/null
+++ b/layouts/index.html
@@ -0,0 +1,32 @@
+{{ partial "head.html" . }}
+<body class="{{ .Site.Params.themeColor }} {{if .Site.Params.layoutReverse}}layout-reverse{{end}}">
+	<main class="content container" role="main">
+		<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>
+	</main>
+  {{ partial "sidebar.html" . }}
+</body>
+</html>
diff --git a/themes/hyde b/themes/hyde
-Subproject 3fb00f95d8f99fe57f3c49b3eb299c0b62af7e7
+Subproject 6b3cab8be195220d7433dd795be42fe727059f2