Module: Jekyll::GisBlogger::Assets

Defined in:
lib/jekyll-gis-blogger/assets.rb

Overview

Ships the gem's own JS/CSS with every Jekyll build.

The storymap and lungkui tags need local assets (StoryMapJS + lungkui.js). Rather than making each project copy them by hand, we register them as Jekyll static files so they are emitted into /assets/gis-blogger/... automatically. Namespaced under /assets/gis-blogger/ so a site's own /assets/ is never touched.

Constant Summary collapse

VENDOR_ROOT =

/lib/jekyll-gis-blogger/vendor

File.expand_path("vendor", __dir__)
FILES =

dir (URL path, mirrored on disk under VENDOR_ROOT) => filenames

{
  "/assets/gis-blogger/js"        => %w[storymap-min.js lungkui.js],
  "/assets/gis-blogger/css"       => %w[storymap.css lungkui.css],
  # vco-icons webfont referenced by storymap.css @font-face (../css/icons/)
  "/assets/gis-blogger/css/icons" => %w[vco-icons.eot vco-icons.ttf vco-icons.woff vco-icons.woff2 vco-icons.svg]
}.freeze