Class: Jekyll::VitePressTheme::SearchIndex::GeneratedPage
- Inherits:
-
PageWithoutAFile
- Object
- PageWithoutAFile
- Jekyll::VitePressTheme::SearchIndex::GeneratedPage
- Defined in:
- lib/jekyll/vitepress_theme/hooks.rb
Instance Method Summary collapse
-
#initialize(site) ⇒ GeneratedPage
constructor
A new instance of GeneratedPage.
Constructor Details
#initialize(site) ⇒ GeneratedPage
Returns a new instance of GeneratedPage.
42 43 44 45 46 47 48 |
# File 'lib/jekyll/vitepress_theme/hooks.rb', line 42 def initialize(site) super(site, site.source, '', 'search.json') self.content = TEMPLATE data['layout'] = nil data['permalink'] = '/search.json' end |