simpletheme/layouts/index.html
2021-03-28 13:54:29 +05:30

53 lines
1.3 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="/resume/{{ .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 -->
{{ with .Site.Data.personalize.PostLimit }}
{{ 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 }}
{{ end }}
<h3><a href="posts/">View all posts</a></h3>
</div>
{{ if ne .Site.Data.personalize.GoatCounterCode "" }}
<script data-goatcounter="{{ .Site.Data.personalize.GoatCounterCode }}" async src="//gc.zgo.at/count.js"></script>
{{ end }}
</body>
</html>