This code calculates the total number of posts on the...

May 12, 2024 at 04:55 AM

{% assign count_posts = site.posts | size %} {% assign milestone_posts = site.tags.Milestone | size %} {% assign total_posts = count_posts | minus: milestone_posts %} <span class="font-bold pl-2">Level {{ total_posts | divided_by: 10 }}</span>

This code calculates the total number of posts on the site, the number of posts tagged with "Milestone", and then subtracts the number of milestone posts from the total posts. Finally, it displays the result of the division of the total posts by 10, with the label "Level" in bold.

Generate your own explanations
Download our vscode extension
Read other generated explanations

Built by @thebuilderjr
Sponsored by beam analytics
Read our terms and privacy policy
Forked from openai-quickstart-node