module Jekyll::Golink::Theme::IndexMD

Public Instance Methods

create_index_md(filename,layout) click to toggle source

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

# File lib/golink/template/index_md.rb, line 8
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