Issue #3 List of pages (long and short)

This commit is contained in:
Alexis Hassler
2019-05-16 18:46:58 +02:00
parent 6689a5faa5
commit a9c6585252
9 changed files with 54 additions and 3 deletions

View File

@@ -0,0 +1,13 @@
Jekyll::Hooks.register :documents, :pre_render do |post|
end
Jekyll::Hooks.register :documents, :post_render do |doc|
# Jekyll.logger.info "Generating:", "Firing :pages, :post_render for : #{post.content}"
if doc.content then
doc.data['size']=doc.content.size
doc.data['bytes']=doc.content.bytesize
else
doc.data['size']=0
doc.data['bytes']=0
end
end