30 lines
742 B
HTML
30 lines
742 B
HTML
{{ define "main" }}
|
|
<content>
|
|
{{ .Content }}
|
|
|
|
<h2>My most recent posts</h2>
|
|
<ul class="blog-posts">
|
|
{{ $max := default 3 .Site.Params.postsToShowOnIndex }}
|
|
{{ $posts := where .Site.RegularPages "Section" "posts" }}
|
|
{{ range first $max $posts.ByDate.Reverse }}
|
|
<li>
|
|
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
|
|
</li>
|
|
{{ end }}
|
|
</ul>
|
|
|
|
<p><a href="/posts/">All posts →</a></p>
|
|
|
|
<h2>My top posts</h2>
|
|
<ul class="blog-posts" id="top-posts">
|
|
</ul>
|
|
<h2> Activity map</h2>
|
|
{{ partial "git-heatmap.html" . }}
|
|
</content>
|
|
|
|
<script>
|
|
window.UPVOTE_API = "{{ .Site.Params.upvoteApi }}";
|
|
window.NUM_BEST = "{{ .Site.Params.numBest }}"
|
|
</script>
|
|
<script src="/top_posts.js"></script>
|
|
{{ end }}
|