Sha256: 276339a659646d97d0af9623b2017c45a86dc3b1c55853236a721895907f44c5

Contents?: true

Size: 954 Bytes

Versions: 19

Compression:

Stored size: 954 Bytes

Contents

# (c) Copyright 2020 Ribose Inc.
#

module Jekyll
  module Geolexica
    module Configuration
      def concepts_glob
        glob_string = glossary_config["concepts_glob"]
        File.expand_path(glob_string, site.source)
      end

      def term_languages
        glossary_config["term_languages"]
      end

      def output_html?
        glossary_config["formats"].include?("html")
      end

      def output_json?
        glossary_config["formats"].include?("json")
      end

      def output_jsonld?
        glossary_config["formats"].include?("json-ld")
      end

      def output_tbx?
        glossary_config["formats"].include?("tbx-iso-tml")
      end

      def output_turtle?
        glossary_config["formats"].include?("turtle")
      end

      def output_yaml?
        glossary_config["formats"].include?("yaml")
      end

      protected

      def glossary_config
        site.config["geolexica"] || {}
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
jekyll-geolexica-1.7.0 lib/jekyll/geolexica/configuration.rb
jekyll-geolexica-1.6.0 lib/jekyll/geolexica/configuration.rb
jekyll-geolexica-1.5.4 lib/jekyll/geolexica/configuration.rb
jekyll-geolexica-1.5.3 lib/jekyll/geolexica/configuration.rb
jekyll-geolexica-1.5.2 lib/jekyll/geolexica/configuration.rb
jekyll-geolexica-1.5.1 lib/jekyll/geolexica/configuration.rb
jekyll-geolexica-1.5.0 lib/jekyll/geolexica/configuration.rb
jekyll-geolexica-1.4.1 lib/jekyll/geolexica/configuration.rb
jekyll-geolexica-1.4.0 lib/jekyll/geolexica/configuration.rb
jekyll-geolexica-1.3.3 lib/jekyll/geolexica/configuration.rb
jekyll-geolexica-1.3.2 lib/jekyll/geolexica/configuration.rb
jekyll-geolexica-1.3.1 lib/jekyll/geolexica/configuration.rb
jekyll-geolexica-1.3.0 lib/jekyll/geolexica/configuration.rb
jekyll-geolexica-1.2.2 lib/jekyll/geolexica/configuration.rb
jekyll-geolexica-1.2.1 lib/jekyll/geolexica/configuration.rb
jekyll-geolexica-1.2.0 lib/jekyll/geolexica/configuration.rb
jekyll-geolexica-1.1.0 lib/jekyll/geolexica/configuration.rb
jekyll-geolexica-1.0.2 lib/jekyll/geolexica/configuration.rb
jekyll-geolexica-1.0.0 lib/jekyll/geolexica/configuration.rb