feat: stats page
This commit is contained in:
parent
67677ff9d4
commit
fa2c2ad514
14 changed files with 495 additions and 155 deletions
|
@ -5,7 +5,7 @@
|
|||
Popular posts
|
||||
</h2>
|
||||
<ul class="list-inside list-disc pl-5 md:pl-10">
|
||||
{% for post in posts %}
|
||||
{% for post in posts limit: 5 %}
|
||||
<li class="mt-1.5 mb-2">
|
||||
<a href="{{post.url}}" title="{{ post.data.title | escape}}">
|
||||
{{ post.data.title }}
|
||||
|
|
13
src/_includes/partials/post-graph.liquid
Normal file
13
src/_includes/partials/post-graph.liquid
Normal file
|
@ -0,0 +1,13 @@
|
|||
<div class="post-graph">
|
||||
{% assign years = postYears | reverse %}
|
||||
{%- for year in years %}
|
||||
<div class="post-graph__wrapper">
|
||||
<div class="post-graph__year">{{ year.year }}</div>
|
||||
<div class="post-graph__progress" style="width: {{ year.yearProgress }}%">
|
||||
</div>
|
||||
<div class="post-graph__data">
|
||||
{{ year.postCount }}
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
Reference in a new issue