aboutsummaryrefslogtreecommitdiff
path: root/_plugins/generate-pastebin-plaintext-alternate.rb
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2020-08-17 13:31:54 -0300
committerEuAndreh <eu@euandre.org>2020-08-17 13:31:54 -0300
commit79fee601401393772d3285e88fca903c78adc65a (patch)
tree0ec2e61834f3afe6eb177ef03f2f05136a377760 /_plugins/generate-pastebin-plaintext-alternate.rb
parentGenerate plaintext links to raw code blocks (diff)
downloadeuandre.org-79fee601401393772d3285e88fca903c78adc65a.tar.gz
euandre.org-79fee601401393772d3285e88fca903c78adc65a.tar.xz
Filter generated plaintext files from site.json listing
Diffstat (limited to '_plugins/generate-pastebin-plaintext-alternate.rb')
-rw-r--r--_plugins/generate-pastebin-plaintext-alternate.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/_plugins/generate-pastebin-plaintext-alternate.rb b/_plugins/generate-pastebin-plaintext-alternate.rb
index bf97f44..d85cacf 100644
--- a/_plugins/generate-pastebin-plaintext-alternate.rb
+++ b/_plugins/generate-pastebin-plaintext-alternate.rb
@@ -33,7 +33,9 @@ module Jekyll
# https://github.com/jekyll/jekyll-feed/blob/c552b8ef7bd7a4babcfb5aec2b22283a5bc354dd/lib/jekyll-feed/page-without-a-file.rb#L4
class PageWithoutAFile < Jekyll::Page
def read_yaml(*)
- @data ||= {}
+ @data ||= {
+ "plaintext" => "true"
+ }
end
end
end