Add top posts functionality

This commit is contained in:
Alex Selimov 2026-06-15 15:49:01 -04:00
parent 2c2a275a95
commit 3ced4c6885
3 changed files with 51 additions and 3 deletions

View file

@ -15,8 +15,16 @@
<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 }}