aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2020-11-14 12:11:00 -0300
committerEuAndreh <eu@euandre.org>2020-11-14 13:51:07 -0300
commit5569d987a8e83c929985b218021b1ff16f4e860f (patch)
treeba83bc1baeb7fc131a15978fe3920c276299e7c5
parentExclude locale/ from ag searches (diff)
downloadeuandre.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.rb6
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