Make filenames sensible

This commit is contained in:
2026-01-07 19:47:12 -06:00
parent 8de3a6f46b
commit 98672cc51b

View File

@@ -37,10 +37,9 @@ ensure_dir_exists(post_directory)
# Create post string
post = %(---\n)
post_id = ''
post_id = Time.new.strftime('%Y-%m-%d_%H:%M')
frontmatter.each_with_index do |item, i|
post += %(#{item.keys[0]}: #{item[item.keys[0]]})
post_id += %(#{item[item.keys[0]].chomp}#{i == frontmatter.length - 1 ? '' : '_'})
end
post += %(---\n#{post_content})