Add top posts functionality
This commit is contained in:
parent
2c2a275a95
commit
3ced4c6885
3 changed files with 51 additions and 3 deletions
|
|
@ -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 }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue