aboutsummaryrefslogtreecommitdiff
path: root/_plugins/generate-pastebin-plaintext-alternate.rb
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2020-11-14 12:59:13 -0300
committerEuAndreh <eu@euandre.org>2020-11-14 13:51:07 -0300
commit4feb22921294fed75806564bde27b0ee746227aa (patch)
tree3f5b77e5a63b087f3ef5fd52ff1ad2482d23872c /_plugins/generate-pastebin-plaintext-alternate.rb
parentplaintext generator: Filter the collection instead of each document (diff)
downloadeuandre.org-4feb22921294fed75806564bde27b0ee746227aa.tar.gz
euandre.org-4feb22921294fed75806564bde27b0ee746227aa.tar.xz
Generate feeds for each categorized entries
Diffstat (limited to '')
-rw-r--r--_plugins/generate-pastebin-plaintext-alternate.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/_plugins/generate-pastebin-plaintext-alternate.rb b/_plugins/generate-pastebin-plaintext-alternate.rb
index 93cc74e..3b5fb9a 100644
--- a/_plugins/generate-pastebin-plaintext-alternate.rb
+++ b/_plugins/generate-pastebin-plaintext-alternate.rb
@@ -20,7 +20,7 @@ module Jekyll
.gsub(/<span class=".*?">(.*?)<\/span>/m, '\1')
content = CGI.unescapeHTML unhighlighted_code
name = "#{document.url}.#{n}.txt"
- plain = PageWithoutAFile.new(site, site.source, "", name)
+ plain = PlaintextPageWithoutAFile.new(site, site.source, "", name)
plain.content = content
site.pages << plain
n += 1
@@ -33,7 +33,7 @@ module Jekyll
# Taken from:
# https://github.com/jekyll/jekyll-feed/blob/c552b8ef7bd7a4babcfb5aec2b22283a5bc354dd/lib/jekyll-feed/page-without-a-file.rb#L4
- class PageWithoutAFile < Jekyll::Page
+ class PlaintextPageWithoutAFile < Jekyll::Page
def read_yaml(*)
@data ||= {
"plaintext" => "true"