diff options
author | Alan Pearce | 2018-06-17 19:40:34 +0200 |
---|---|---|
committer | Alan Pearce | 2018-06-17 19:40:34 +0200 |
commit | 7ffe02d5070b979f7a99727f9a919bc5a2956038 (patch) | |
tree | aa11f9c8ae96862c0bf4aa612d354688bbd639a8 /layouts/index.html | |
parent | 5619a512a607df67ca5970494917e20471aab8c6 (diff) | |
download | website-7ffe02d5070b979f7a99727f9a919bc5a2956038.tar.lz website-7ffe02d5070b979f7a99727f9a919bc5a2956038.tar.zst website-7ffe02d5070b979f7a99727f9a919bc5a2956038.zip |
Update hyde
Diffstat (limited to 'layouts/index.html')
-rw-r--r-- | layouts/index.html | 75 |
1 files changed, 35 insertions, 40 deletions
diff --git a/layouts/index.html b/layouts/index.html index 1d1c3e8..870efea 100644 --- a/layouts/index.html +++ b/layouts/index.html | |||
@@ -1,40 +1,35 @@ | |||
1 | {{ partial "head.html" . }} | 1 | {{ define "main" -}} |
2 | <body class="{{ .Site.Params.themeColor }} {{if .Site.Params.layoutReverse}}layout-reverse{{end}}"> | 2 | <section class="about"> |
3 | <main class="content container" role="main"> | 3 | {{ .Content }} |
4 | <section class="about"> | 4 | </section> |
5 | {{ .Content }} | 5 | <section class="recent"> |
6 | </section> | 6 | <h2>Recent Posts</h2> |
7 | <section class="recent"> | 7 | <ul class="posts"> |
8 | <h2>Recent Posts</h2> | 8 | {{- range first 3 .Data.Pages }} |
9 | <ul class="posts"> | 9 | <li> |
10 | {{ range first 3 .Data.Pages }} | 10 | <a class="post-title" href="{{ .RelPermalink | replaceRE "/$" "" }}">{{ .Title }}</a> |
11 | <li> | 11 | <time class="post-date" datetime="{{ .Date.Format "2006-01-02T15:04:05Z" }}">{{ .Date.Format "Monday, 2 January 2006" }}</time> |
12 | <a class="post-title" href="{{ .RelPermalink | replaceRE "/$" "" }}">{{ .Title }}</a> | 12 | </li> |
13 | <time class="post-date" datetime="{{ .Date.Format "2006-01-02T15:04:05Z" }}">{{ .Date.Format "Monday, 2 January 2006" }}</time> | 13 | {{- end }} |
14 | </li> | 14 | </ul> |
15 | {{ end }} | 15 | </section> |
16 | </ul> | 16 | <section class="contact"> |
17 | </section> | 17 | <h2>Contact</h2> |
18 | <section class="contact"> | 18 | <ul> |
19 | <h2>Contact</h2> | 19 | {{- range .Site.Menus.contact }} |
20 | <ul> | 20 | <li> |
21 | {{ range .Site.Menus.contact }} | 21 | {{- if hasPrefix .URL "mailto:" }} |
22 | <li> | 22 | <a href="{{ .URL }}" class="u-email email" rel="me">{{ .Name }}</a> |
23 | {{ if hasPrefix .URL "mailto:" }} | 23 | {{- else }} |
24 | <a href="{{ .URL }}" class="u-email email" rel="me">{{ .Name }}</a> | 24 | <a href="{{ .URL }}" class="u-url url" rel="me">{{ .Name }}</a> |
25 | {{ else }} | 25 | {{- end }} |
26 | <a href="{{ .URL }}" class="u-url url" rel="me">{{ .Name }}</a> | 26 | </li> |
27 | {{ end }} | 27 | {{- end }} |
28 | </li> | 28 | </ul> |
29 | {{ end }} | 29 | </section> |
30 | </ul> | 30 | <footer> |
31 | </section> | 31 | {{- with .Site.Params.GPG }} |
32 | <footer> | 32 | GPG Key: <a href="{{ .url }}" rel="pgpkey">{{ .fingerprint }}</a> |
33 | {{ with .Site.Params.GPG }} | 33 | {{- end }} |
34 | GPG Key: <a href="{{ .url }}" rel="pgpkey">{{ .fingerprint }}</a> | 34 | </footer> |
35 | {{ end }} | 35 | {{- end }} \ No newline at end of file |
36 | </footer> | ||
37 | </main> | ||
38 | {{ partial "sidebar.html" . }} | ||
39 | </body> | ||
40 | </html> | ||