From 5569d987a8e83c929985b218021b1ff16f4e860f Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sat, 14 Nov 2020 12:11:00 -0300 Subject: plaintext generator: Filter the collection instead of each document --- _plugins/generate-pastebin-plaintext-alternate.rb | 6 +++--- 1 file 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 -- cgit v1.2.3