simpletheme/layouts/index.html

51 lines
1.2 KiB
HTML
Raw Normal View History

2020-04-02 09:37:23 +00:00
<!DOCTYPE html>
<html>
{{ partial "head.html" . }}
<body>
<h1>{{ .Site.Params.Name }}</h1>
2020-04-02 09:37:23 +00:00
<div>{{ .Content }}</div>
2020-04-02 09:37:23 +00:00
<table>
{{ range .Site.Params.profiles }}
2020-06-18 10:57:34 +00:00
{{ partial "profile_link.html" . }}
{{ end }}
2020-04-02 09:37:23 +00:00
<tr>
{{ if ne .Site.Params.Resume "" }}
2020-04-02 09:37:23 +00:00
<td><i class="fas fa-file-alt" aria-hidden="true"></i></td>
<td>&nbsp;<a href="/resume/{{ .Site.Params.Resume }}" target="_blank">Resume</a></td>
2020-04-02 09:37:23 +00:00
{{ end }}
</tr>
<tr>
{{ if ne .Site.Params.Email "" }}
2020-04-02 09:37:23 +00:00
<td><i class="fas fa-envelope" aria-hidden="true"></i></td>
<td>&nbsp;<code>{{ .Site.Params.Email }}</code></td>
2020-04-02 09:37:23 +00:00
{{ end }}
</tr>
</table>
<h3>Posts</h3>
<div>
<!-- orders content according to the "publishdate" field in front matter -->
{{ range first (.Site.Params.PostLimit | default 4) (where .Site.RegularPages.ByPublishDate "Section" "posts") }}
2020-04-02 09:37:23 +00:00
<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>
{{ if ne .Site.Params.GoatCounterCode "" }}
<script data-goatcounter="{{ .Site.Params.GoatCounterCode }}" async src="//gc.zgo.at/count.js"></script>
2020-06-18 10:57:34 +00:00
{{ end }}
2020-04-02 09:37:23 +00:00
</body>
2020-06-18 11:16:10 +00:00
</html>