This commit is contained in:
parent
86274b0365
commit
d6f503cc1d
@ -352,14 +352,14 @@ if "#{shop_enabled}" === "true"
|
|||||||
|
|
||||||
# create the filename
|
# create the filename
|
||||||
file_name = "#{date.strftime('%Y-%m-%d')}-#{slug}#{file_ending}"
|
file_name = "#{date.strftime('%Y-%m-%d')}-#{slug}#{file_ending}"
|
||||||
|
|
||||||
# let us put humpty dumpty back together again!
|
|
||||||
# create a new collection type post *.md
|
|
||||||
p = File.open( "#{jekyll_product_path}#{file_name}","w" )
|
|
||||||
puts "#{jekyll_product_path}#{file_name}"
|
puts "#{jekyll_product_path}#{file_name}"
|
||||||
puts Dir.entries(".")
|
puts Dir.entries(".")
|
||||||
puts Dir.entries("collections/")
|
puts Dir.entries("collections/")
|
||||||
puts Dir.entries("collections/_products/")
|
puts Dir.entries("collections/_products/")
|
||||||
|
|
||||||
|
# let us put humpty dumpty back together again!
|
||||||
|
# create a new collection type post *.md
|
||||||
|
p = File.open( "#{jekyll_product_path}#{file_name}","w" )
|
||||||
|
|
||||||
# create document.md content in Jekyll yaml formatting
|
# create document.md content in Jekyll yaml formatting
|
||||||
p.puts "---"
|
p.puts "---"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user