This repository has been archived on 2025-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
coryd.dev-eleventy/src/_includes/partials/post-graph.liquid
2024-02-20 10:21:03 -08:00

17 lines
No EOL
503 B
Text

{% capture css %}
{% render "../../assets/styles/components/post-graph.css" %}
{% endcapture %}
<style>{{ css }}</style>
<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>