-
-
Save stephenajulu/e1a9769370fff1bb22cc5ac133c280ef to your computer and use it in GitHub Desktop.
Counter: This code snippet just counts your jekyll posts and spits out the result
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% comment %} | |
* | |
* Counter: This include counts your jekyll posts | |
* | |
{% endcomment %}{% assign counter = 0 %}{% for item in site.posts %}{% unless item.published == false %}{% assign counter=counter | plus:1 %}{% endunless %}{% endfor %}{{ counter }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment