How to use the pelican.signals.content_object_init function in pelican

To help you get started, we’ve selected a few pelican examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github cmacmackin / scribbler / scribbler / clean_summary / clean_summary.py View on Github external
def register():
    signals.initialized.connect(init)
    try:
        signals.all_generators_finalized.connect(run_plugin)
    except AttributeError:
        # NOTE: This may result in #314 so shouldn't really be relied on
        # https://github.com/getpelican/pelican-plugins/issues/314
        signals.content_object_init.connect(clean_summary)
github akhayyat / pelican-page-hierarchy / page_hierarchy.py View on Github external
def register():
    signals.content_object_init.connect(override_metadata)
    signals.page_generator_finalized.connect(set_relationships)
github silentlamb / pelican-deadlinks / deadlinks.py View on Github external
def register():
    """
    Part of Pelican API
    """
    signals.content_object_init.connect(content_object_init)
github lqez / pelican-embed-tweet / embed_tweet.py View on Github external
def register():
    signals.content_object_init.connect(embed_tweet)
github ingwinlu / pelican-bootstrapify / bootstrapify.py View on Github external
def register():
    signals.initialized.connect(init_default_config)
    signals.content_object_init.connect(bootstrapify)
github ingwinlu / pelican-toc / toc.py View on Github external
def register():
    signals.initialized.connect(init_default_config)
    signals.content_object_init.connect(generate_toc)
github iksteen / pelican-albums / pelican_albums / __init__.py View on Github external
def register():
    signals.initialized.connect(initialized)
    signals.get_generators.connect(generator.get_generators)
    signals.content_object_init.connect(content.update_content)
    signals.finalized.connect(thumbnails.generate_thumbnails)
github mosra / m.css / plugins / m / plots.py View on Github external
def register(): # for Pelican
    import pelican.signals

    pelican.signals.initialized.connect(_pelican_configure)
    pelican.signals.content_object_init.connect(new_page)
github pyvideo / pyvideo / plugins / aggregations.py View on Github external
def register():
    signals.content_object_init.connect(_handle_content_object_init)
    signals.article_generator_finalized.connect(_inject_aggregates)