diff options
-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 }} |