Sha256: df9865470c2e80979a9edc74a056a061bf0489d61d4226889ea2caa166fab70d

Contents?: true

Size: 738 Bytes

Versions: 1

Compression:

Stored size: 738 Bytes

Contents

# encoding: utf-8
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,
        'permalink_label' => 'Permalink'
      }

      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.2.0 lib/octopress-linkblog/configuration.rb