Skip to content
Snippets Groups Projects
Verified Commit 3e8b3ea3 authored by Jake's avatar Jake
Browse files

added print statements in generation

parent 839c24b4
No related branches found
No related tags found
No related merge requests found
Pipeline #355913 failed
......@@ -100,20 +100,25 @@ class Generator:
writer.write_file(f.link.path, f.rawcontents, mode="wb")
for lang in self.config['lang']['supported']:
# all published pages
print(lang, "-> Generatng all published pages.")
for page in self.context['pages'][lang].values():
writer.write_template(page.template, page.link.path, lang, {'page': page}, page.config)
# all hidden pages
print(lang, "-> Generatng all hidden pages.")
for page in self.context['hidden_pages'][lang].values():
#print(page.slug)
writer.write_template(page.template, page.link.path, lang, {'page': page}, page.config)
# all tags
print(lang, "-> Generatng all tags.")
for tag in self.context['tags'][lang].values():
writer.write_template('tag.html', tag.link.path, lang, {'tag': tag}, tag.config)
# homepages for languages
print(lang, "-> Generatng homepage.")
self.generate_homepage(writer, lang, lang + "/index.html")
# homepage
......
......@@ -21,6 +21,7 @@ class Writer:
print("templates: ", self.env.list_templates())
def write_template(self, template, path, lang, extra_context, localized_config):
#print("write_template:", template, path, lang, extra_context, localized_config)
tmpl = self.env.get_template(template)
pathsplit = path.split('/')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment