Sha256: c5ccac6c66ca1fe111386de6db26e6f91db04d8dc85678d9853b57bdd6eccea5

Contents?: true

Size: 692 Bytes

Versions: 9

Compression:

Stored size: 692 Bytes

Contents

module Jekyll
  module Golink
    module Theme
      module IndexMD

        # Create index markdown page, responsible for launching the homepage of the site.

        def create_index_md(filename,layout)
          File.open(filename, 'w') do |file|
            file.puts "---"
            file.puts "# You don't need to edit this file, it's empty on purpose."
            file.puts "# Edit theme's home layout instead if you wanna make some changes"
            file.puts "# See: https://jekyllrb.com/docs/themes/#overriding-theme-defaults"
            file.puts "layout: #{layout}"
            file.puts "---"
            file.puts ""
          end
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
golink-1.0.9 lib/golink/template/index_md.rb
golink-1.0.8 lib/golink/template/index_md.rb
golink-1.0.7 lib/golink/template/index_md.rb
golink-1.0.6 lib/golink/template/index_md.rb
golink-1.0.4 lib/golink/template/index_md.rb
golink-1.0.3 lib/golink/template/index_md.rb
golink-1.0.2 lib/golink/template/index_md.rb
golink-1.0.1 lib/golink/template/index_md.rb
golink-1.0.0 lib/golink/template/index_md.rb