Class: Jekyll::Page
- Inherits:
-
Object
- Object
- Jekyll::Page
- Includes:
- Php::Constants
- Defined in:
- lib/jekyll-php/page.rb
Constant Summary
Constants included from Php::Constants
Php::Constants::PHP_EXTENSIONS
Instance Method Summary collapse
Instance Method Details
#php? ⇒ Boolean
15 16 17 |
# File 'lib/jekyll-php/page.rb', line 15 def php? return PHP_EXTENSIONS.include?(output_ext) end |
#template ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'lib/jekyll-php/page.rb', line 5 def template if !html? && !php? "/:path/:basename:output_ext" elsif index? "/:path/" else Utils.add_permalink_suffix("/:path/:basename", site.permalink_style) end end |