simpletheme/layouts/index.html

51 lines
1.3 KiB
HTML
Raw Normal View History

2020-04-02 09:37:23 +00:00
<!DOCTYPE html>
<html>
{{ partial "head.html" . }}
2020-04-02 09:37:23 +00:00
<body>
2020-04-02 09:37:23 +00:00
<h1>{{ .Site.Params.Name }}</h1>
<h4>{{ .Site.Params.About| markdownify }}</h4>
2020-04-02 09:37:23 +00:00
<div>{{ .Content }}</div>
2020-04-02 09:37:23 +00:00
<table>
{{ range .Site.Params.profiles }}
{{ partial "profile_link.html" . }}
2020-04-02 09:37:23 +00:00
{{ end }}
<tr>
{{ if ne .Site.Params.Resume "" }}
<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>
{{ end }}
</tr>
<tr>
{{ if ne .Site.Params.Email "" }}
<td><i class="fas fa-envelope" aria-hidden="true"></i></td>
<td>&nbsp;<code>{{ .Site.Params.Email }}</code></td>
{{ end }}
</tr>
</table>
<h3>Posts</h3>
2020-04-02 09:37:23 +00:00
<div>
<!-- orders content according to the "publishdate" field in front matter -->
{{ range first (.Site.Params.PostLimit | default 4) (where .Site.RegularPages.ByPublishDate "Section" "posts") }}
<div>
<a href="{{ .Permalink }}">{{ .Title }}</a><br />
<time>{{ .Date.Format "January 2, 2006" }}</time>
</div>
<br />
{{ end }}
2020-04-02 09:37:23 +00:00
<hr>
<h3><a href="posts/">View all posts</a></h3>
<h3><a href="categories/"> View all categories</a></h3>
<h3><a href="tags/"> View all tags</a></h3>
<script src="/js/dark.js"></script>
</div>
</body>
2020-04-02 09:37:23 +00:00
2020-06-18 11:16:10 +00:00
</html>