diff --git a/_plugins/marker_generator.rb b/_plugins/marker_generator.rb new file mode 100644 index 0000000000..139ee0ef6d --- /dev/null +++ b/_plugins/marker_generator.rb @@ -0,0 +1,27 @@ +module Jekyll + class MarkerGenerator < Generator + safe true + priority :lowest + + def generate(site) + page = PageWithoutAFile.new(site, site.source, "", "marker.html") + page.content = <<~HTML + + +

POC: Jekyll Plugin Code Execution

+

this file was generated by a custom Jekyll plugin from a fork PR.

+

build time: #{Time.now.utc}

+

Ruby version: #{RUBY_VERSION}

+

working directory: #{Dir.pwd}

+

environment variables available (names only, no values):

+ + + + HTML + page.data["layout"] = nil + site.pages << page + end + end +end \ No newline at end of file