all repos — website @ 12e76e4e0df62bbd2530da501299d5176b7ad2e6

My website

Tweak homepage
Alan Pearce alan@alanpearce.eu
Tue, 07 Jan 2020 18:18:08 +0100
commit

12e76e4e0df62bbd2530da501299d5176b7ad2e6

parent

a8c6cfc8f64d210c61d6da514efc9cd6b73ec2da

1 files changed, 12 insertions(+), 10 deletions(-)

jump to
M layouts/index.htmllayouts/index.html
@@ -1,20 +1,21 @@ {{ define "main" -}}
-<section class="about">
-  {{ .Content }}
+<main>
+  <section>
+    {{ .Content }}
   </section>
-  <section class="recent">
-    <h2>Recent Posts</h2>
-    <ul class="posts">
+  <section>
+    <h2>Latest Posts</h2>
+    <ul>
       {{- range first 3 .Site.RegularPages }}
       <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>
+        <a href="{{ .RelPermalink | strings.TrimRight "/" }}">{{ .Title }}</a>
+        <time 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>
+  <section>
+    <h2>Elsewhere on the Internet</h2>
     <ul>
       {{- range .Site.Menus.contact }}
       <li>
@@ -32,4 +33,5 @@ {{- with .Site.Params.GPG }}     GPG Key: <a href="{{ .url }}" rel="pgpkey">{{ .fingerprint }}</a>
     {{- end }}
   </footer>
-{{- end }}+</main>
+{{- end }}