forked from varia/varia.website
many many many Varia's websites, work in progress: https://many.vvvvvvaria.org
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
369 B
13 lines
369 B
7 years ago
|
# -*- coding: utf-8 -*-
|
||
|
from pelican import signals
|
||
|
|
||
|
def initialize_content_object_set(app):
|
||
|
app.settings['content_objects'] = set()
|
||
|
|
||
|
def collect_content_objects(co):
|
||
|
context = co._context['content_objects'].add(co)
|
||
|
|
||
|
def register():
|
||
|
signals.initialized.connect(initialize_content_object_set)
|
||
|
signals.content_object_init.connect(collect_content_objects)
|