Fix gemini output path for files in subdirectories under public/

This commit is contained in:
Sami Samhuri 2026-04-11 12:09:55 -07:00
parent 74f7a0b54a
commit 7904a5974b
No known key found for this signature in database

View file

@ -39,7 +39,11 @@ module Pressa
File.join(slug, "index.gmi")
end
output_path = File.join(target_dir, output_filename)
output_path = if relative_dir.empty?
File.join(target_dir, output_filename)
else
File.join(target_dir, relative_dir, output_filename)
end
FileWriter.write(path: output_path, content: rows.join("\n"))
end