Sha256: d5224e1f1907ee77b3e3f70bece7e0461a8367b7f90537f346f6975f4c42e599

Contents?: true

Size: 678 Bytes

Versions: 1

Compression:

Stored size: 678 Bytes

Contents

module Octopress
  unless defined? Octopress.config
    def self.config
      file = '_octopress.yml'
      if File.exist?(file)
        SafeYAML.load_file(file) || {}
      else
        {}
      end
    end
  end

  module LinkBlog
    module Configuration
      DEFAULTS = {
        'linkpost' => {
          'marker' => "→",
          'marker_position' => 'after'
        },

        'post' => {
          'marker' => false,
          'marker_position' => 'before'
        },

        'titlecase' => true,
        'unorphan'  => true
      }

      def self.config
        @config ||= Jekyll::Utils.deep_merge_hashes(DEFAULTS, Octopress.config)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
octopress-linkblog-1.0.0 lib/octopress-linkblog/configuration.rb