Skip to content

Commit

Permalink
show number of events in the footer
Browse files Browse the repository at this point in the history
  • Loading branch information
captn3m0 committed Sep 18, 2024
1 parent ec692f6 commit 6bfbc27
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion _includes/footer.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
<footer style="margin-top: 2rem">
<hr />
{% assign eventCount = page.events | size %}
<p>
{{eventCount}} events.
Last Updated at {{site.time | date: "%d %b / %H:%M %p"}}. {% if
page.layout == "events" %} Help improve this page
<a href="https://github.com/blr-today/website/edit/main/{{page.path}}">
on GitHub
</a>
</a>.
{% endif %}
</p>
</footer>
1 change: 1 addition & 0 deletions _layouts/events.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,4 @@ <h3>{{eventCount}} Events</h3>
{% endif %}

{% include sources.html tags=page.tags %}
{% assign page.eventCount = eventCount %}

0 comments on commit 6bfbc27

Please sign in to comment.