Class: Jekyll::VitePressTheme::SearchIndex::GeneratedPage

Inherits:
PageWithoutAFile
  • Object
show all
Defined in:
lib/jekyll/vitepress_theme/hooks.rb

Instance Method Summary collapse

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