simpletheme/layouts/index.html
David Gunter 44be73a11c Use a partial to render social profile links.
The .personalize.toml now requires all social profile links be TOML table entries.
2020-04-18 18:00:18 -07:00

50 lines
1.1 KiB
HTML

<!DOCTYPE html>
<html>
{{ partial "head.html" . }}
<body>
<h1>{{ .Site.Data.personalize.Name }}</h1>
<h4>{{ .Site.Data.personalize.About| markdownify }}</h4>
<table>
{{ range .Site.Data.personalize.profiles }}
{{ partial "profile_link.html" . }}
{{ end }}
<tr>
{{ if ne .Site.Data.personalize.Resume "" }}
<td><i class="fas fa-file-alt" aria-hidden="true"></i></td>
<td>&nbsp;<a href="assets/pdf/{{ .Site.Data.personalize.Resume }}" target="_blank">Resume</a></td>
{{ end }}
</tr>
<tr>
{{ if ne .Site.Data.personalize.Email "" }}
<td><i class="fas fa-envelope" aria-hidden="true"></i></td>
<td>&nbsp;<code>{{ .Site.Data.personalize.Email }}</code></td>
{{ end }}
</tr>
</table>
<h3>Posts</h3>
<div>
<!-- orders content according to the "publishdate" field in front matter -->
{{ range first .Site.Data.personalize.PostLimit .Pages.ByPublishDate }}
<div>
<a href="{{ .Permalink }}">{{ .Title }}</a><br />
<time>{{ .Date.Format "January 2, 2006" }}</time>
</div>
<br />
{{ end }}
<h3><a href="posts/">View all posts</a></h3>
</div>
</body>
</html>