Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add some site statistics to global context #235

Closed
wants to merge 3 commits into from

Conversation

leingang
Copy link

@leingang leingang commented Jun 7, 2017

This is a tiny plugin I wrote to add some keys to the global context.

  • post_count: the number of posts in the site
  • cat_count: the number of categories in the site
  • tag_count: the number of tags in the site.

Copy link
Member

@Kwpolska Kwpolska left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👎

This plugin breaks incremental rebuilds by editing GLOBAL_CONTEXT with something that changes pretty often. Please make it work the way sidebar does, by producing a single HTML file.

@leingang
Copy link
Author

leingang commented Jun 7, 2017

Oh, OK. I think I might just adapt sidebar, then.

@leingang leingang closed this Jun 7, 2017
@felixfontein
Copy link
Contributor

I prepared an example on how to use the sidebar plugin with filetreesubs here: https://github.com/felixfontein/filetreesubs-nikola-demo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants