Sha256: 860e3c775a4f7462e14c91fc8a56bf175a70378941de65515ac650639ddcef02
Contents?: true
Size: 1.15 KB
Versions: 3
Compression:
Stored size: 1.15 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 "# Loading theme" file.puts "theme: #{Jekyll::Golink::Theme::NAME_GEM}" file.puts "# Loading Gems" file.puts "gems:" file.puts " - jekyll-email-protect" file.puts "# Build settings" file.puts "markdown: kramdown" 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
golink-1.0.2 | lib/golink/template/config_yml.rb |
golink-1.0.1 | lib/golink/template/config_yml.rb |
golink-1.0.0 | lib/golink/template/config_yml.rb |