debugging gnerate-products.rb
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
oDinZu 2022-11-25 16:07:57 -05:00
parent 86274b0365
commit d6f503cc1d

View File

@ -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}"