Module: JekyllDynamicAssets

Defined in:
lib/jekyll_dynamic_assets.rb,
lib/jekyll_dynamic_assets/version.rb,
lib/jekyll_dynamic_assets/processor.rb,
lib/jekyll_dynamic_assets/assets_tag.rb,
lib/jekyll_dynamic_assets/defaults/formats.rb,
lib/jekyll_dynamic_assets/defaults/sources.rb

Defined Under Namespace

Classes: AssetsTag, Error, Processor

Constant Summary collapse

VERSION =
"1.3.2"
DEFAULT_FORMATS =
{
  "css" => '<link rel="stylesheet" href="%s">',
  "js" => '<script src="%s"></script>',
  "mjs" => '<script type="module" src="%s"></script>',
  "ts" => '<script type="module" src="%s"></script>',
  "json" => '<link rel="alternate" type="application/json" href="%s">',
  "ico" => '<link rel="icon" href="%s">',
  "woff" => '<link rel="preload" href="%s" as="font" type="font/woff" crossorigin>',
  "woff2" => '<link rel="preload" href="%s" as="font" type="font/woff2" crossorigin>',
  "ttf" => '<link rel="preload" href="%s" as="font" type="font/ttf" crossorigin>',
  "otf" => '<link rel="preload" href="%s" as="font" type="font/otf" crossorigin>'
}.freeze
DEFAULT_SOURCES =
{
  "base" => "/assets",
  "css" => "/styles",
  "js" => "/scripts",
  "mjs" => "/scripts",
  "ts" => "/scripts",
  "json" => "/data",
  "ico" => "/icons",
  "woff" => "/fonts",
  "woff2" => "/fonts",
  "ttf" => "/fonts",
  "otf" => "/fonts"
}.freeze