Show blog post count locally
Signed-off-by: Oliver Davies <oliver@oliverdavies.uk>
This commit is contained in:
parent
2c517f1d39
commit
c5d71803a5
2 changed files with 5 additions and 0 deletions
|
@ -36,6 +36,7 @@ drupalorg:
|
||||||
|
|
||||||
features:
|
features:
|
||||||
new_css: false
|
new_css: false
|
||||||
|
show_blog_post_count: true
|
||||||
|
|
||||||
github:
|
github:
|
||||||
url: https://github.com/%github.username%
|
url: https://github.com/%github.username%
|
||||||
|
|
|
@ -7,6 +7,10 @@ pagination:
|
||||||
use: [posts]
|
use: [posts]
|
||||||
---
|
---
|
||||||
|
|
||||||
|
{% if site.features.show_blog_post_count %}
|
||||||
|
{{ data.posts|length|number_format }}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
{% for post in page.pagination.items %}
|
{% for post in page.pagination.items %}
|
||||||
<li>
|
<li>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue