You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Stats are shown in articles page.
Without testing stats availability, pelican raise an exception.
Fix
The fix is easy, the generators_finalized signal must be used, too.
defregister():
"""Register the Statistics plugin."""try:
signals.all_generators_finalized.connect(run_plugin)
signals.generators_finalized.connect(run_plugin)
exceptAttributeError:
# NOTE: This results in #314 so shouldn't really be relied on# https://github.com/getpelican/pelican-plugins/issues/314signals.content_object_init.connect(calculate_stats)
Do you want a pull-request (for a one line fix) ?
The text was updated successfully, but these errors were encountered:
Trouble
In
article-info.html
I have to test ifstats
is available :Stats are shown in articles page.
Without testing stats availability, pelican raise an exception.
Fix
The fix is easy, the
generators_finalized
signal must be used, too.Do you want a pull-request (for a one line fix) ?
The text was updated successfully, but these errors were encountered: