Class: Jekyll::LlmsTxtGenerator
- Inherits:
-
Generator
- Object
- Generator
- Jekyll::LlmsTxtGenerator
- Defined in:
- lib/jekyll/llms_txt_generator.rb
Instance Method Summary collapse
Instance Method Details
#generate(site) ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/jekyll/llms_txt_generator.rb', line 10 def generate(site) @site = site @config = site.config["llms_txt"] || {} return unless @config["enabled"] != false # Store content on site object so the post_write hook can access it site.data["__llms_txt_content"] = build_llms_txt if @config["full"] site.data["__llms_full_txt_content"] = build_llms_full_txt end inject_link_tag(site) if @config["link_tag"] != false end |