Class: Jekyll::Securitytxt::Generator
- Inherits:
-
Generator
- Object
- Generator
- Jekyll::Securitytxt::Generator
- Defined in:
- lib/jekyll/securitytxt.rb
Overview
Jekyll plugin for generating security.txt
Instance Method Summary collapse
-
#generate(site) ⇒ Object
Plugin entry point.
Instance Method Details
#generate(site) ⇒ Object
Plugin entry point.
14 15 16 17 |
# File 'lib/jekyll/securitytxt.rb', line 14 def generate(site) @site = site @site.pages << create_security_txt_file unless security_txt_file_exists? end |