From 4feb22921294fed75806564bde27b0ee746227aa Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sat, 14 Nov 2020 12:59:13 -0300 Subject: Generate feeds for each categorized entries --- _plugins/generate-pastebin-plaintext-alternate.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '_plugins/generate-pastebin-plaintext-alternate.rb') 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>/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" -- cgit v1.2.3