This commit is contained in:
parent
86274b0365
commit
d6f503cc1d
@ -352,15 +352,15 @@ if "#{shop_enabled}" === "true"
|
||||
|
||||
# create the filename
|
||||
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 Dir.entries(".")
|
||||
puts Dir.entries("collections/")
|
||||
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
|
||||
p.puts "---"
|
||||
p.puts "product_id: #{product_id}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user