all repos — homestead @ dbf8e24f7e1d536c6c44bd7825a58fd6b932dda7

Code for my website

Tweak homepage

Alan Pearce
commit

dbf8e24f7e1d536c6c44bd7825a58fd6b932dda7

parent

e85a0e8b88cdf6c5514fd1fb73d5ab24104ea22d

1 file 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 }}