diff options
author | EuAndreh <eu@euandre.org> | 2020-11-14 12:11:00 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2020-11-14 13:51:07 -0300 |
commit | 5569d987a8e83c929985b218021b1ff16f4e860f (patch) | |
tree | ba83bc1baeb7fc131a15978fe3920c276299e7c5 | |
parent | Exclude locale/ from ag searches (diff) | |
download | euandre.org-5569d987a8e83c929985b218021b1ff16f4e860f.tar.gz euandre.org-5569d987a8e83c929985b218021b1ff16f4e860f.tar.xz |
plaintext generator: Filter the collection instead of each document
Diffstat (limited to '')
-rw-r--r-- | _plugins/generate-pastebin-plaintext-alternate.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/_plugins/generate-pastebin-plaintext-alternate.rb b/_plugins/generate-pastebin-plaintext-alternate.rb index 5ab059d..93cc74e 100644 --- a/_plugins/generate-pastebin-plaintext-alternate.rb +++ b/_plugins/generate-pastebin-plaintext-alternate.rb @@ -7,9 +7,9 @@ module Jekyll def generate(site) site.collections.each do |collection| - _collection_name, collection_documents = collection - collection_documents.docs.each do |document| - if document.type != :slides + collection_name, collection_documents = collection + if collection_name != "slides" + collection_documents.docs.each do |document| n = 1 Renderer .new(site, document) # create a renderer for the document |