Class: Jekyll::JekyllNewsSitemap
- Inherits:
-
Generator
- Object
- Generator
- Jekyll::JekyllNewsSitemap
- Defined in:
- lib/jekyll/jekyll-news-sitemap.rb
Instance Method Summary collapse
-
#generate(site) ⇒ Object
Main plugin action, called by Jekyll-core.
Instance Method Details
#generate(site) ⇒ Object
Main plugin action, called by Jekyll-core
11 12 13 14 |
# File 'lib/jekyll/jekyll-news-sitemap.rb', line 11 def generate(site) @site = site @site.pages << sitemap unless file_exists?("sitemap_news.xml") end |