diff options
author | Alan Pearce | 2020-01-07 18:18:08 +0100 |
---|---|---|
committer | Alan Pearce | 2020-01-07 18:18:08 +0100 |
commit | 12e76e4e0df62bbd2530da501299d5176b7ad2e6 (patch) | |
tree | 97c58e707cc9527f2a9bcd87769002afcb7f1052 | |
parent | a8c6cfc8f64d210c61d6da514efc9cd6b73ec2da (diff) | |
download | website-12e76e4e0df62bbd2530da501299d5176b7ad2e6.tar.lz website-12e76e4e0df62bbd2530da501299d5176b7ad2e6.tar.zst website-12e76e4e0df62bbd2530da501299d5176b7ad2e6.zip |
Tweak homepage
-rw-r--r-- | layouts/index.html | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/layouts/index.html b/layouts/index.html index 46493e8..8aebc2d 100644 --- a/layouts/index.html +++ b/layouts/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 @@ GPG Key: <a href="{{ .url }}" rel="pgpkey">{{ .fingerprint }}</a> {{- end }} </footer> -{{- end }} \ No newline at end of file +</main> +{{- end }} |