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 @@ | |||
1 | {{ define "main" -}} | 1 | {{ define "main" -}} |
2 | <section class="about"> | 2 | <main> |
3 | {{ .Content }} | 3 | <section> |
4 | {{ .Content }} | ||
4 | </section> | 5 | </section> |
5 | <section class="recent"> | 6 | <section> |
6 | <h2>Recent Posts</h2> | 7 | <h2>Latest Posts</h2> |
7 | <ul class="posts"> | 8 | <ul> |
8 | {{- range first 3 .Site.RegularPages }} | 9 | {{- range first 3 .Site.RegularPages }} |
9 | <li> | 10 | <li> |
10 | <a class="post-title" href="{{ .RelPermalink | replaceRE "/$" "" }}">{{ .Title }}</a> | 11 | <a href="{{ .RelPermalink | strings.TrimRight "/" }}">{{ .Title }}</a> |
11 | <time class="post-date" datetime="{{ .Date.Format "2006-01-02T15:04:05Z" }}">{{ .Date.Format "Monday, 2 January 2006" }}</time> | 12 | <time datetime="{{ .Date.Format "2006-01-02T15:04:05Z" }}">{{ .Date.Format "Monday, 2 January 2006" }}</time> |
12 | </li> | 13 | </li> |
13 | {{- end }} | 14 | {{- end }} |
14 | </ul> | 15 | </ul> |
15 | </section> | 16 | </section> |
16 | <section class="contact"> | 17 | <section> |
17 | <h2>Contact</h2> | 18 | <h2>Elsewhere on the Internet</h2> |
18 | <ul> | 19 | <ul> |
19 | {{- range .Site.Menus.contact }} | 20 | {{- range .Site.Menus.contact }} |
20 | <li> | 21 | <li> |
@@ -32,4 +33,5 @@ | |||
32 | GPG Key: <a href="{{ .url }}" rel="pgpkey">{{ .fingerprint }}</a> | 33 | GPG Key: <a href="{{ .url }}" rel="pgpkey">{{ .fingerprint }}</a> |
33 | {{- end }} | 34 | {{- end }} |
34 | </footer> | 35 | </footer> |
35 | {{- end }} \ No newline at end of file | 36 | </main> |
37 | {{- end }} | ||