Class: Jekyll::SvgViewer::PreviewPage
- Inherits:
-
Object
- Object
- Jekyll::SvgViewer::PreviewPage
- Defined in:
- lib/jekyll/svg_viewer/preview_page.rb
Constant Summary collapse
- TEMPLATE_PATH =
File.("../../../assets/svg-viewer/preview/index.html", __dir__)
Class Method Summary collapse
Class Method Details
.register(_site) ⇒ Object
9 10 11 12 13 14 15 16 17 |
# File 'lib/jekyll/svg_viewer/preview_page.rb', line 9 def register(_site) return if hook_registered? @hook_registered = true Jekyll::Hooks.register :site, :post_read do |site| add_preview_page(site) end end |