diff options
Diffstat (limited to '_plugins/generate-pastebin-plaintext-alternate.rb')
-rw-r--r-- | _plugins/generate-pastebin-plaintext-alternate.rb | 4 |
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" |