2022-01-25 00:35:39 +00:00
|
|
|
{{- define "body" -}}
|
2020-11-03 22:14:45 +00:00
|
|
|
|
2022-01-25 00:35:39 +00:00
|
|
|
<div id="homepageContainer">
|
|
|
|
<div id="homepage">
|
|
|
|
<h1 id="title">michael zhang</h1>
|
2020-11-03 22:14:45 +00:00
|
|
|
|
2022-01-25 00:35:39 +00:00
|
|
|
<div id="about">{{ .Content }}</div>
|
2020-11-03 22:14:45 +00:00
|
|
|
|
2022-01-25 00:35:39 +00:00
|
|
|
<h2 id="blog-posts-title"><a href="/posts">recent blog posts »</a></h2>
|
|
|
|
<div id="blog-posts">
|
|
|
|
{{ $posts := .GetPage "/posts" }}
|
|
|
|
{{- range first 3 $posts.Pages -}}
|
|
|
|
<a href="{{ .RelPermalink }}" class="blog-post-link">
|
|
|
|
<span class="blog-post">
|
|
|
|
<span class="title">{{ .Title }}</span>
|
|
|
|
<small class="details">
|
|
|
|
{{ .Date.Format "Mon Jan 02, 2006" }}
|
|
|
|
</small>
|
|
|
|
</span>
|
|
|
|
</a>
|
|
|
|
{{- end -}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-07-06 21:32:34 +00:00
|
|
|
|
2020-11-03 22:14:45 +00:00
|
|
|
{{- end -}}
|