Sha256: c8024222df62b0f9164fc1c1ab7b82bd5eebecd12b556afcfb2c9d26ac97d5e1

Contents?: true

Size: 1.2 KB

Versions: 1

Compression:

Stored size: 1.2 KB

Contents

module Jekyll
  module Golink
    module Theme
      module ConfigYML
        def create_config_yml(filename)

          # Creating the _config.yml file. Required by Jekyll.

          File.open(filename, 'w') do |file|
            file.puts "baseurl: \"\" # the subpath of your site, e.g. /blog"
            file.puts "url: \"\" # the base hostname & protocol for your site, e.g. http://example.com"
            file.puts ""
            file.puts "# Config SASS"
            file.puts "sass:"
            file.puts "  sass_dir: _sass"
            file.puts "  style: compressed"
            file.puts "# Highlighter"
            file.puts "highlighter: rouge"
            file.puts "# Loading theme"
            file.puts "theme: #{Jekyll::Golink::Theme::NAME_GEM}"
            file.puts "# Build settings"
            file.puts "markdown: kramdown"
            file.puts "kramdown:"
            file.puts "  syntax_highlighter: rouge"
            file.puts "# Remove file from compilation."
            file.puts "exclude:"
            file.puts "  - Gemfile"
            file.puts "  - Gemfile.lock"
            file.puts "  - README.md"
            file.puts "  - Rakefile"
          end
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
golink-1.0.9 lib/golink/template/config_yml.rb