Module: AlFolioCv

Defined in:
lib/al_folio_cv.rb,
lib/al_folio_cv/filters.rb,
lib/al_folio_cv/version.rb,
lib/al_folio_cv/date_sorting.rb

Defined Under Namespace

Modules: DateSorting, Filters Classes: AssetsGenerator, PluginStaticFile, RenderTag

Constant Summary collapse

PLUGIN_ROOT =
File.expand_path("..", __dir__)
TEMPLATES_ROOT =
File.join(PLUGIN_ROOT, "templates")
ASSETS_ROOT =
File.join(PLUGIN_ROOT, "assets")
VERSION =
"1.0.2"

Class Method Summary collapse

Class Method Details

.enabled?(site) ⇒ Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/al_folio_cv.rb', line 16

def enabled?(site)
  site.config.dig("al_folio", "features", "cv", "enabled") != false
end